if I write something like this,
audio.say("äääööö")
my pys60 won't say anything?
How in hek I make skript that speak
proper finnish?
Please Help, im stuck!
if I write something like this,
audio.say("äääööö")
my pys60 won't say anything?
How in hek I make skript that speak
proper finnish?
Please Help, im stuck!
Gargi Das- http://gargidas.blogsot.com
Forum Nokia Python Wiki
Learn Python at http://mobapps.org/PyS60
Kandyfloss
V 7.0642.0
18-10-06
RH-51
Nokia 7610
Yes, well make sure the language settings are ok, and that the telephone is actually capable of speaking the language (feed it with some english text - if it doesn't sound like english then it probably isn't - so far so good).
Secondly, make sure that you know in what encoding does the function (audio.say) expect its input, and that you feed it with a properly encoded "äääööö" (these are special characters after all).
First Thanks for help,
I'm using n80 and the language is set to finnish.
It talks finnish but when it comes to letter ä or ö
the letter will be skipped.
Are you tested this with your phones?
Thanks
Santtu2000
Gargi Das- http://gargidas.blogsot.com
Forum Nokia Python Wiki
Learn Python at http://mobapps.org/PyS60
Thanks again,
Is this a bug in pys60 or something?
where should it be notified?
Im writing a little program for visual impaired people and if finnish not spoken properly, ill conna get serious laffs, heh!
thanks
Santtu2000
- Neil R.Bhasme -
Twitter: @Symbian_Neil
Gargi Das- http://gargidas.blogsot.com
Forum Nokia Python Wiki
Learn Python at http://mobapps.org/PyS60
Don't know about Suomi, what buffles me though is the encoding of the string - I've read somewhere that all Symbian is unicode, so why does audio.say expect ASCII ? No matter if the core engine is able to speak Suomi or not, I express my concern again: in what encoding should the input string be (and why not unicode) ?
Gargi Das- http://gargidas.blogsot.com
Forum Nokia Python Wiki
Learn Python at http://mobapps.org/PyS60
Last edited by kandyfloss; 2008-03-25 at 14:11.
Kandyfloss
V 7.0642.0
18-10-06
RH-51
Nokia 7610
The official PyS60 documentation doesn't say that the string has to be unicode:
And both normal strings and unicode ones work:The following method is available in the audio module:
say(text, prefix=audio.TTS_PREFIX)
Passes the text to the device text-to-speech engine. The default prefix is the text-to-speech prefix "(tts)".
Code:import audio audio.say('Discussion') #Is apparently the same as audio.say(u'Discussion')