12-20-2010 05:41 AM
Hi All,
I am experimenting Text-to-speech using Blackberry 5.0. The text to speech is working fine in all 5.0 simulators except 9550. I dont know why??
I am trying to set the female voice, age using SynthesizerProperties and Voice but its not working. Please have a look on my code and correct me if i wrong in setting up female voice.
public void tts(String description){
try {
Synthesizer synth = (Synthesizer) EngineManager
.createEngine(SynthesizerMode.DEFAULT);
SynthesizerProperties synthesizerProperties = synth
.getSynthesizerProperties();
Voice voice = new Voice(null, null, Voice.GENDER_FEMALE,
Voice.AGE_TEENAGER, Voice.VARIANT_DONT_CARE);
synthesizerProperties.setVoice(voice);
synth.allocate();
synth.speak(description, null);
synth.deallocate();
} catch (Exception e) {
e.printStackTrace();
}
}
Is it possible to set up female voice, age according to jsapi 2.0??
Thanks in advance,
Sri
12-21-2010 08:10 AM
TTS is not available for 3rd party developers (RIM only)
12-21-2010 12:43 PM
Or if your making an assistive-service app (from what I remember).
As @AlexXF said (most) 3rd party devs don't have access to this library, so we can't really help you with it.
12-22-2010 02:06 AM
Thanks AlexXF and rcmaniac25,
I developed TTS app on 9700 simulator using above code. Its working fine. Text to speech is working other simulators of 5.0 except 9550.
But my problem is, I set the female voice but TTS working on 9700 simulator with male voice irrespective of voice settings.
Does it work on 9700 device??