I'm using the pico default android TTS engine with 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 generally working, but for some letters it doesn't like "ã" or "ɑ" etc.
So my question is, How can I add theses letters/sounds, to this TTS engine ?
Hey you can use addEarcon()
to add sounds to testToSpeech link.
This medthod is used to add earcons.It will link a text to a speecific sound file.
You can also 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 is also a very good explanation on addEarcon in book Professional Android Sensor Programming by Greg Milette, Adam Stroud at page no 366 and 367.
You can also find example on this link.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With