mirror of
https://github.com/rhasspy/espeak-ng.git
synced 2026-10-31 21:39:47 +00:00
VoiceVariant.java: Use MALE and FEMALE string constants.
This commit is contained in:
@@ -220,9 +220,9 @@ public class TtsService extends TextToSpeechService {
|
||||
if (variantString == null) {
|
||||
final int gender = getPreferenceValue(prefs, "default_gender", SpeechSynthesis.GENDER_MALE);
|
||||
if (gender == SpeechSynthesis.GENDER_FEMALE) {
|
||||
variant = VoiceVariant.parseVoiceVariant("female");
|
||||
variant = VoiceVariant.parseVoiceVariant(VoiceVariant.FEMALE);
|
||||
} else {
|
||||
variant = VoiceVariant.parseVoiceVariant("male");
|
||||
variant = VoiceVariant.parseVoiceVariant(VoiceVariant.MALE);
|
||||
}
|
||||
} else {
|
||||
variant = VoiceVariant.parseVoiceVariant(variantString);
|
||||
|
||||
Reference in New Issue
Block a user