text to speech - How to add a sound to Android pico TTS engine? -
i'm using pico default android tts engine ipa caracters doing this
string text3 = "<speak xml:lang=\"fr-fr\"> <phoneme alphabet=\"ipa\" ph=\"+"+words+"\"/>.</speak>"; mytts.speak(text3, texttospeech.queue_add, null);
it's working, letters doesn't "ã" or "ɑ" etc.
so question is, how can add theses letters/sounds, tts engine ?
hey can use addearcon()
add sounds testtospeech link. medthod used add earcons.it link text speecific sound file. can find example on this.
mtts = new texttospeech(this, new oninitlistener() { @override public void oninit(int status) { mtts.addearcon("[tock]", "com.ideal.itemid", r.raw.tock_snd); showrecordingview(); } });
there explanation on addearcon in book professional android sensor programming greg milette, adam stroud @ page no 366 , 367.
you can find example on link.
Comments
Post a Comment