×

Discussion Board

Results 1 to 8 of 8
  1. #1
    Registered User
    Join Date
    Oct 2009
    Posts
    21

    Version for location based app using wrt

    Hi,
    I am developing a Speech enabled GPS Navigator using WRT. I am making use of JavaScript Location Service API and google map api for development. Now i know wrt widgets will work in all s60 5th edition mobile for sure. I also read that some of 3rd edition FP-2 mobiles are capable of running WRT widgets.

    I want to know whether the project which I mentioned above is capable of running in 3rd edition FP-2 mobiles?

    Also let me know if there is any possibility of porting wrt app into 3rd edition Fp-1 mobiles. Right now I have E-71.

    Another help needed for me is how to add voice output using WRT.

    This is my final year college project.

  2. #2
    Nokia Developer Expert
    Join Date
    Jun 2008
    Location
    Tampere
    Posts
    833

    Re: Version for location based app using wrt

    Quote Originally Posted by rajanmr View Post
    Hi,
    I am developing a Speech enabled GPS Navigator using WRT. I am making use of JavaScript Location Service API and google map api for development. Now i know wrt widgets will work in all s60 5th edition mobile for sure. I also read that some of 3rd edition FP-2 mobiles are capable of running WRT widgets.

    I want to know whether the project which I mentioned above is capable of running in 3rd edition FP-2 mobiles?

    Also let me know if there is any possibility of porting wrt app into 3rd edition Fp-1 mobiles. Right now I have E-71.

    Another help needed for me is how to add voice output using WRT.

    This is my final year college project.
    Hello,

    The complete list of devices which supports WRT 1.1 is available here. There should not be big issues on those 3rd ed. FP2 devices, since they use the same browser as N97 (BrowserNG/7.1). Only thing that you must take into account is to enable navigation without touch (tabbed or cursor navigation mode).

    I would say that you can forget 3.1 devices as they don't support platform services. So Location service API is not available. Of course you could use API Bridge, but it is up to you to decide if it is worth of the extra work.


    One way to play sounds is to use simple embed-object




    Code:
    //HTML
    <button onclick="playSound('piano.wav')">Play Sound</button>
    <div id="sounds"></div>
    
    //JavaScript
    function playSound(soundUrl) {
       var sc = document.getElementById("sounds");
       
       var sound = document.createElement("embed");
       sound.setAttribute("src", soundUrl);
       sound.setAttribute("hidden","true");
       sound.setAttribute("autostart", "true");
       sound.setAttribute("loop", "false");
       sc.appendChild(sound);    
    }
    Br,
    Ilkka - FN

  3. #3
    Registered User
    Join Date
    Oct 2009
    Posts
    21

    Re: Version for location based app using wrt

    Thanks very much for providing the list of devices. To be in the safer side I have decided to use Nokia 5800 for my project.

    Coming to the code for voice you have provided, it is for playing stored music files like .wmv or .mp3. But what I need is a text-to-Speech engine. I need it to speak out a line of text using the mobile speaker. The text will be a string variable or a file content.

    Please let me know if there is a text-2-speech engine to be used with wrt or other third party engines which i can use with wrt??


    Quote Originally Posted by isalento View Post
    Hello,

    The complete list of devices which supports WRT 1.1 is available here. There should not be big issues on those 3rd ed. FP2 devices, since they use the same browser as N97 (BrowserNG/7.1). Only thing that you must take into account is to enable navigation without touch (tabbed or cursor navigation mode).



    I would say that you can forget 3.1 devices as they don't support platform services. So Location service API is not available. Of course you could use API Bridge, but it is up to you to decide if it is worth of the extra work.


    One way to play sounds is to use simple embed-object




    Code:
    //HTML
    <button onclick="playSound('piano.wav')">Play Sound</button>
    <div id="sounds"></div>
    
    //JavaScript
    function playSound(soundUrl) {
       var sc = document.getElementById("sounds");
       
       var sound = document.createElement("embed");
       sound.setAttribute("src", soundUrl);
       sound.setAttribute("hidden","true");
       sound.setAttribute("autostart", "true");
       sound.setAttribute("loop", "false");
       sc.appendChild(sound);    
    }
    Br,
    Ilkka - FN

  4. #4
    Nokia Developer Expert
    Join Date
    Jun 2008
    Location
    Tampere
    Posts
    833

    Re: Version for location based app using wrt

    There is no support for Text To Speech in WRT. However you could write a server component that calls Symbian TTS. One more feasible solution is to use some text to speech web service, however the latency might be too big.

    I'm just thinking that you should be able to get quite far by just using recorded voices. Like "turn right" "turn left" and "make a U turn " in navigation application.

    Br,
    Ilkka

  5. #5
    Registered User
    Join Date
    Oct 2009
    Posts
    21

    Re: Version for location based app using wrt

    thanks again. My primary plan was to create 3 mp3 files like "turn right", "turn left" and "Make a u-turn". BUt due to the license and TOS of Google maps, What I am getting is routing instructions like

    "Head North on S Morgan st towards W cermak Road"

    So the idea pre-creating sound files and playing them did not work.

    Your second suggestion looks like a more feasible one. text to speech web service. I am looking deep into it. I have found some such web service providers. but only one of them provide me with the api, i have contacted them and awaiting their reply.

    I think it is possible to do text to speech in symbian c++. Please let me if i can incorporate c++ in wrt . Or use both wrt and c++ simultaneously by passing arguments between the two.


    Quote Originally Posted by isalento View Post
    There is no support for Text To Speech in WRT. However you could write a server component that calls Symbian TTS. One more feasible solution is to use some text to speech web service, however the latency might be too big.

    I'm just thinking that you should be able to get quite far by just using recorded voices. Like "turn right" "turn left" and "make a U turn " in navigation application.

    Br,
    Ilkka

  6. #6
    Registered User
    Join Date
    Oct 2009
    Posts
    21

    Re: Version for location based app using wrt

    Hi isalento,
    I tried the code which you gave here. below is my source code. This is not playing sound in my mobile and also in the emulator. Please let me know what I have done wrong.


    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <title></title>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <script type="text/javascript" src="WRTKit/WRTKit.js"></script>
    <link rel="stylesheet" href="basic.css" type="text/css">
    <META NAME="Generator" CONTENT="Nokia WRT plug-in for Aptana Studio 2.3.0" />
    <script type="text/javascript">
    function playSound() {
    var soundUrl="voice.wav";
    var sc = document.getElementById("sounds");
    var sound = document.createElement("embed");
    sound.setAttribute("src", soundUrl);
    sound.setAttribute("hidden","true");
    sound.setAttribute("autostart", "true");
    sound.setAttribute("loop", "false");
    sc.appendChild(sound);
    }
    </script>
    </head>
    <body>
    <div>
    <input type="button" style="height: 100px; width: 100px" value="curloc" onclick="playsound()">
    </div>
    <div id="sounds"></div>
    </body>
    </html>
    but it is not playing the sound. Can you point what I am doing wrong. Also should I modify the info.plist file? if so how to change it. it is not playing sound both in emulator and also in the mobile.






    Quote Originally Posted by isalento View Post
    Hello,

    The complete list of devices which supports WRT 1.1 is available here. There should not be big issues on those 3rd ed. FP2 devices, since they use the same browser as N97 (BrowserNG/7.1). Only thing that you must take into account is to enable navigation without touch (tabbed or cursor navigation mode).

    I would say that you can forget 3.1 devices as they don't support platform services. So Location service API is not available. Of course you could use API Bridge, but it is up to you to decide if it is worth of the extra work.


    One way to play sounds is to use simple embed-object




    Code:
    //HTML
    <button onclick="playSound('piano.wav')">Play Sound</button>
    <div id="sounds"></div>
    
    //JavaScript
    function playSound(soundUrl) {
       var sc = document.getElementById("sounds");
       
       var sound = document.createElement("embed");
       sound.setAttribute("src", soundUrl);
       sound.setAttribute("hidden","true");
       sound.setAttribute("autostart", "true");
       sound.setAttribute("loop", "false");
       sc.appendChild(sound);    
    }
    Br,
    Ilkka - FN

  7. #7
    Nokia Developer Expert
    Join Date
    Jun 2008
    Location
    Tampere
    Posts
    833

    Re: Version for location based app using wrt

    At least there is a typo in button onclick attribute.
    It says onclick="playsound()" and in JS side you have playSound()

    -Ilkka

  8. #8
    Registered User
    Join Date
    Oct 2009
    Posts
    21

    Re: Version for location based app using wrt

    Quote Originally Posted by isalento View Post
    At least there is a typo in button onclick attribute.
    It says onclick="playsound()" and in JS side you have playSound()

    -Ilkka
    Thanks or pointing the error, but still I am unable play the audio file.

    Should i update the info.plist file by including the audio file there?

    I read from the Media management api that .wav is not supported, So i tried with a mp3 file. When I play it in the simulator a mp3 file gets downloaded instead of being played.
    Last edited by rajanmr; 2009-12-21 at 13:49.

Similar Threads

  1. web based simulator for mobile app
    By selvamarcadu in forum Mobile Java General
    Replies: 5
    Last Post: 2009-06-09, 08:30
  2. how to distribute pys60 based apps?
    By chall3ng3r in forum Symbian
    Replies: 4
    Last Post: 2007-03-27, 14:13
  3. nokia 7210 modem via IR doesn't work !
    By oussamaaiadi in forum PC Suite API and PC Connectivity SDK
    Replies: 1
    Last Post: 2003-03-06, 10:46
  4. URGENT : 3rd Party app version management (Series60, c++) ?
    By TrickLo in forum Symbian Tools & SDKs
    Replies: 0
    Last Post: 2002-12-09, 11:51
  5. Questions about version code in MMS protocol
    By wangzhong in forum General Messaging
    Replies: 1
    Last Post: 2002-11-21, 10:32

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×