mirror of
https://github.com/rhasspy/espeak-ng.git
synced 2026-11-02 22:07:12 +00:00
Rework the Voice variant preference to show a dialog with Category and Variant lists.
The original variant list UI resulted in a long, complex list that was difficult to navigate. This change splits up that list into more manageable groups.
This commit is contained in:
@@ -60,6 +60,17 @@ public class VoiceVariant {
|
||||
return ret;
|
||||
}
|
||||
|
||||
public boolean equals(Object o) {
|
||||
if (o instanceof VoiceVariant) {
|
||||
VoiceVariant other = (VoiceVariant)o;
|
||||
if (variant == null || other.variant == null) {
|
||||
return other.variant == null && variant == null && other.gender == gender && other.age == age;
|
||||
}
|
||||
return other.variant.equals(variant) && other.gender == gender && other.age == age;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
public static VoiceVariant parseVoiceVariant(String value) {
|
||||
String[] parts = mVariantPattern.split(value);
|
||||
int age = SpeechSynthesis.AGE_ANY;
|
||||
|
||||
Reference in New Issue
Block a user