SpeechSynthesis.java: further simplify the setVoice method.

This renames `setVoiceByProperties` to the more consise `setVoice`
and removes the name parameter as this is not used -- the voice is
set by the language and gender parameters only.
This commit is contained in:
Reece H. Dunn
2013-05-02 16:45:46 +01:00
parent 027217d5f7
commit 88eab88d8a
3 changed files with 10 additions and 14 deletions
@@ -221,7 +221,7 @@ public class TtsService extends TextToSpeechService {
mCallback.start(mEngine.getSampleRate(), mEngine.getAudioFormat(),
mEngine.getChannelCount());
mEngine.setVoiceByProperties(null, mMatchingVoice.name, gender);
mEngine.setVoice(mMatchingVoice.name, gender);
mEngine.setRate(rate);
mEngine.setPitch(pitch);
mEngine.synthesize(text, text.startsWith("<speak"));