mirror of
https://github.com/rhasspy/espeak-ng.git
synced 2026-11-23 12:05:47 +00:00
When specifying dialects of Vietnamese, specify the country code as well as the variant code.
This commit is contained in:
@@ -132,10 +132,10 @@ public class SpeechSynthesis {
|
||||
locale = new Locale("hy", "", "arevmda");
|
||||
} else if (name.equals("vi-hue")) {
|
||||
// 'hue' is for the Hue Province accent/dialect (Central Vietnamese).
|
||||
locale = new Locale("vi", "", "hue");
|
||||
locale = new Locale("vi", "VN", "hue");
|
||||
} else if (name.equals("vi-sgn")) {
|
||||
// 'sgn' is for the Saigon accent/dialect (South Vietnamese).
|
||||
locale = new Locale("vi", "", "saigon");
|
||||
locale = new Locale("vi", "VN", "saigon");
|
||||
} else if (name.equals("zh-yue")) {
|
||||
// Android/Java does not support macrolanguages.
|
||||
locale = new Locale("zh", "HK");
|
||||
@@ -531,5 +531,6 @@ public class SpeechSynthesis {
|
||||
mJavaToIanaCountryCode.put("GBR", "GB");
|
||||
mJavaToIanaCountryCode.put("PRT", "PT");
|
||||
mJavaToIanaCountryCode.put("USA", "US");
|
||||
mJavaToIanaCountryCode.put("VNM", "VN");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user