Text To Speech Voice & Accents
Text To Speech Voice & Accents
Simple code to change your text to speech voice or accent.
Codes:
tts = new TextToSpeech(getApplicationContext(), new TextToSpeech.OnInitListener(){
@Override public void onInit(int status){
if(status != TextToSpeech.ERROR){
tts.setLanguage(new Locale("fil-ph"));
}
}});
tts - Text To Speech ID
fil-ph - Your Language Code (https://cloud.google.com/text-to-speech/docs/voices)
Comments
Post a Comment