You Are Here:

Community: Developer Discussion Boards

#1 Old Audio - 2008-10-25, 14:01

Join Date: Oct 2008
Posts: 24
BAM8
Offline
Registered User
Hi! I have a problem, when I run the following script in my emulator:
---------------------------------------------------------------
import appuifw, audio
text = appuifw.query(u"Type a word:", "text")
audio.say(text)
---------------------------------------------------------------
nothing happens, I hear no sound, but when I run it in my phone it works perfect. Also, in my emulator I can hear music. Any idea?
Thanks!
Reply With Quote

#2 Old Re: Audio - 2008-10-25, 14:51

Join Date: Sep 2007
Posts: 395
Location: Bhavnagar
Send a message via Yahoo to james1980
james1980's Avatar
james1980
Offline
Forum Nokia Champion
Hi,
I think it should work because it work well in phone.
One more thing, use the code tag given as '#' symbol at the top so that it maintain the tab and space.
Bye


Jajal Mehul
Reply With Quote

#3 Old Re: Audio - 2008-10-25, 17:11

Join Date: Feb 2008
Posts: 2,542
Location: Bhavnagar, Gujarat, India
Send a message via Yahoo to gaba88 Send a message via Skype™ to gaba88
gaba88's Avatar
gaba88
Offline
Forum Nokia Champion
Quote:
Originally Posted by BAM8 View Post
Hi! I have a problem, when I run the following script in my emulator:
---------------------------------------------------------------
import appuifw, audio
text = appuifw.query(u"Type a word:", "text")
audio.say(text)
---------------------------------------------------------------
nothing happens, I hear no sound, but when I run it in my phone it works perfect. Also, in my emulator I can hear music. Any idea?
Thanks!
hi BAM8

welcome to the forum nokia python discussion boards.
Ya this is the first thing i tried when i started programming for mobiles long ago. But i was failure too and made a wild guess that the sdk is not having the speech engine required to convert text 2 speech.
This is just a wild guess i am not confirmed about this.

Enjoy Pythoning
Gaba88


Gargi Das- http://gargidas.blogsot.com

Forum Nokia Python Wiki


Learn Python at http://mobapps.org/PyS60
Reply With Quote

#4 Old Re: Audio - 2008-10-25, 21:23

Join Date: Feb 2008
Posts: 743
Location: Belo Horizonte, Brazil
Send a message via Skype™ to Rafael T.
Rafael T.'s Avatar
Rafael T.
Offline
Forum Nokia Champion
Yes, I guess gaba88 is right. I also tried using audio.say() on emulator and it doesn't work. Maybe the emulator doesn't have the phone's 'voice' for somehow. They could get this to work on next version of PyS60, maybe.


BR,

Rafael.
Reply With Quote

#5 Old Re: Audio - 2008-10-25, 23:40

Join Date: Oct 2008
Posts: 24
BAM8
Offline
Registered User
Hi! Thank u everyone.. I´ll probe it only on my phone. Bye!
Reply With Quote

#6 Old Re: Audio - 2008-10-26, 04:53

Join Date: Feb 2008
Posts: 2,542
Location: Bhavnagar, Gujarat, India
Send a message via Yahoo to gaba88 Send a message via Skype™ to gaba88
gaba88's Avatar
gaba88
Offline
Forum Nokia Champion
Quote:
Originally Posted by Rafael T. View Post
Yes, I guess gaba88 is right. I also tried using audio.say() on emulator and it doesn't work. Maybe the emulator doesn't have the phone's 'voice' for somehow. They could get this to work on next version of PyS60, maybe.


BR,

Rafael.
hi Rafael

i guess the problem is not on the pys60 side but its on the sdk side may be some sdk expert can throw some more light on this issue.

Enjoy Pythoning
Gaba88


Gargi Das- http://gargidas.blogsot.com

Forum Nokia Python Wiki


Learn Python at http://mobapps.org/PyS60
Reply With Quote

#7 Old Re: Audio - 2008-10-26, 08:20

Join Date: May 2007
Posts: 2,738
Location: 21.46 N 72.11 E
croozeus's Avatar
croozeus
Offline
Forum Nokia Champion
SDK requires a plugin to use TTS
Reply With Quote

#8 Old Re: Audio - 2008-10-26, 13:39

Join Date: Feb 2008
Posts: 743
Location: Belo Horizonte, Brazil
Send a message via Skype™ to Rafael T.
Rafael T.'s Avatar
Rafael T.
Offline
Forum Nokia Champion
Yes, it is on the SDK as Croozeus said, I said that could be in PyS60 because I have never tested playing any audio there, so I thought it didn't work only in PyS60.

Thanks for the correction!


BR,

Rafael.
Reply With Quote

#9 Old Re: Audio - 2008-10-26, 13:45

Join Date: May 2007
Posts: 2,738
Location: 21.46 N 72.11 E
croozeus's Avatar
croozeus
Offline
Forum Nokia Champion
Quote:
Originally Posted by BAM8 View Post
Hi! I have a problem, when I run the following script in my emulator:
---------------------------------------------------------------
import appuifw, audio
text = appuifw.query(u"Type a word:", "text")
audio.say(text)
---------------------------------------------------------------
nothing happens, I hear no sound, but when I run it in my phone it works perfect. Also, in my emulator I can hear music. Any idea?
Thanks!
And coming back to the main issue - One reason might be that you are trying it on 2nd edition device.

Remember, TTS in PyS60, is only available from 3rd Edition device onwards...
Reply With Quote

#10 Old Re: Audio - 2008-10-26, 14:22

Join Date: Feb 2008
Posts: 743
Location: Belo Horizonte, Brazil
Send a message via Skype™ to Rafael T.
Rafael T.'s Avatar
Rafael T.
Offline
Forum Nokia Champion
Quote:
Originally Posted by croozeus View Post
And coming back to the main issue - One reason might be that you are trying it on 2nd edition device.

Remember, TTS in PyS60, is only available from 3rd Edition device onwards...
Actually, he is saying that it works on the phone but he wanted to test it on emulator. And, as you said, a plugin is needed for using TTS on the emulator, since it's not supported by default.


BR,

Rafael.
Reply With Quote
Reply « Previous Thread | Next Thread »
Display Modes
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules

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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump
Similar Threads
Thread Thread Starter Forum Replies Last Post
Python IR remote control! cassioli Python 27 2009-01-28 05:24
Recording an audio stream using the Series 60 emulator rastapasta Symbian Media (Graphics & Sounds) 4 2007-04-23 12:46
Half Duplex Audio Streaming subhrajyotisaha Symbian Media (Graphics & Sounds) 0 2006-05-25 05:39

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia