mirror of
https://github.com/rhasspy/espeak-ng.git
synced 2026-11-03 22:26:48 +00:00
VoiceSettings.java: Support setting an espeak_punctuation_characters preference.
This commit is contained in:
@@ -31,6 +31,7 @@ public class VoiceSettings {
|
||||
public static final String PREF_PITCH_RANGE = "espeak_pitch_range";
|
||||
public static final String PREF_VOLUME = "espeak_volume";
|
||||
public static final String PREF_PUNCTUATION_LEVEL = "espeak_punctuation_level";
|
||||
public static final String PREF_PUNCTUATION_CHARACTERS = "espeak_punctuation_characters";
|
||||
|
||||
public VoiceSettings(SharedPreferences preferences, SpeechSynthesis engine) {
|
||||
mPreferences = preferences;
|
||||
@@ -107,6 +108,10 @@ public class VoiceSettings {
|
||||
return level;
|
||||
}
|
||||
|
||||
public String getPunctuationCharacters() {
|
||||
return mPreferences.getString(PREF_PUNCTUATION_CHARACTERS, null);
|
||||
}
|
||||
|
||||
private int getPreferenceValue(String preference, int defaultValue) {
|
||||
String prefString = mPreferences.getString(preference, null);
|
||||
if (prefString == null) {
|
||||
|
||||
Reference in New Issue
Block a user