04-19-2010 02:54 PM - edited 04-19-2010 02:55 PM
I am trying to do a text to speech app, for OS 5.0, I know it supports JSR 113, here's my simple code:
AND here is what got in the console:\
TTSN: Attempting to initialize (param ignored)...
TTSN: Attempting to open.
TTSN: Opening output channel 0xFF.
AR: add source 3
AR: setAudioMode 20
TTSN: Attempting to play "hello.".
AR: remove source 3
AR: setAudioMode 32
TTSN: Closing output channel.
BUT i am not getting any sound. I am running this in a simulator. Anyone know why?
Thanks in advance for any help or direction.
04-19-2010 03:38 PM - edited 04-19-2010 04:28 PM
Did you try it on a device yet? I saw the support but it is not an officially supported API (otherwise they would have mentioned it) but could not find a good tutorial.
By the way what simulator are you using? The Storm 9550 simulator says that net_rim_speech could not be found yet the cod file is there.
06-10-2010 01:04 PM
hello I have also got text to speech working in the 9700 simulator. However i do not think this is supported on the actual device. did you happen to find any proprietary/3rd party libraries that work on the device?
06-23-2010 08:32 AM
I am a newbie in Blackberry development, I have been trying to implement TTS in Blackberry for about two weeks now and have tried every single solution available on net but none of them worked for me. I have tried importing JSAPI.jar, JSAPI2.jar, FreeTTS.jar, etc in my Blackberry project (using bb-ant tool in Eclipse, also in Blackberry JDE,) but nothing seems to work. When I tried JSAPI.jar it always gives me Duplicate definition found for Audio.Event class. If I try FreeTTS.jar it gives me No Class definition found for almost all the classes of FreeTTS.jar. When I use JSAPI2.jar it give me an errors saying can not access java.net.url.
As yours is the only post I found in which TTS is somehow working on Blackberry. Can you please explain me the steps you took to make it working.
Please provide me some tips for this, I have tried every thing I can and am feeling very frustrated now.
Thank you in Advance!
06-23-2010 09:00 AM
Be warned. A lot of things (especially third party libraries) work on the simulator won't work on the actual device since lots of times, these libraries use native interface to a targeted host dll. Don't know if TTS is one of those. However, from 15 years of experience working with speech products, most libraries has some kind of processor dependent dsp codes.
06-23-2010 09:54 AM
Thanks for taking some time out and look in to my problem. I would be happy even if I get it working on Simulator but its not working on it as well.
Any way thanks again for looking at the post. I will continue to dig in to it.
08-01-2010 07:21 AM - edited 08-01-2010 07:23 AM
Was anyone able to get Text to Speech working?
My code works fine (similar to OP's code) on the simulator but on the device I'm getting access denied.
Error: "JSR-113 access denied"
I checked application permissions and enabled everything but still no luck.
In this document (http://docs.blackberry.com/en/admin/deliverables/1
"Currently, RIM limits the use of the Text-To-Speech API."
If access is limited, how can an application get access to it? Do we have to be an Alliance Member?
08-01-2010 12:03 PM - edited 08-01-2010 12:06 PM
No, it is not a public API. So usage of it is sketchy and shouldn't be relied on.
EDIT: Hmm, didn't realize they had a document out about it. Regardless, if it's not in the public API (such as http://www.blackberry.com/developers/docs/5.0.0api