TtsService.java: rework the logic to use the new Parameter API.

This commit is contained in:
Reece H. Dunn
2013-05-02 20:33:43 +01:00
parent de78778210
commit 233da111db
3 changed files with 11 additions and 93 deletions
@@ -183,14 +183,6 @@ public class SpeechSynthesis {
}
}
public void setRate(int rate) {
nativeSetRate(rate);
}
public void setPitch(int pitch) {
nativeSetPitch(pitch);
}
/** Don't announce any punctuation characters. */
public static int PUNCT_NONE = 0;
@@ -326,10 +318,6 @@ public class SpeechSynthesis {
private native final boolean nativeSetVoiceByProperties(String language, int gender, int age);
private native final boolean nativeSetRate(int rate);
private native final boolean nativeSetPitch(int pitch);
private native final boolean nativeSetParameter(int parameter, int value);
private native final int nativeGetParameter(int parameter, int current);