gotev / android-speech

Android speech recognition and text to speech made easy
http://gotev.github.io/android-speech/
Apache License 2.0
477 stars 156 forks source link

Add the ability to use network voice. #5

Closed jd-alexander closed 6 years ago

jd-alexander commented 7 years ago

Could you add the ability to use the network for the voice? the current offline voice sounds really machine like, I know this can be done by adding this to the TTS params

map.put(TextToSpeech.Engine.KEY_FEATURE_NETWORK_SYNTHESIS, Boolean.TRUE.toString());

However when I checked the library had no option that allowed me to add my own params.

gotev commented 7 years ago

@jd-alexander this is already supported. Have you tried with Speech.getInstance().setPreferOffline(false);?

jd-alexander commented 7 years ago

No I didnt try that.