mirror of
https://github.com/rhasspy/espeak-ng.git
synced 2026-11-06 15:12:24 +00:00
TtsService.java: rework the logic to use the new Parameter API.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user