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

Popular posts from this blog

java - Jmockit String final length method mocking Issue -

asp.net - Razor Page Hosted on IIS 6 Fails Every Morning -

c++ - wxwidget compiling on windows command prompt -