Browse Source

Enable om language support.

master
Reece H. Dunn 9 years ago
parent
commit
fcd4edfd16

+ 1
- 0
android/eSpeakTests/src/com/reecedunn/espeak/test/VoiceData.java View File

new Voice("ne", "asia/ne", "ne", "nep", "", "", "", SpeechSynthesis.GENDER_MALE, "Nepali", "nep", "This is a sample of text spoken in Nepali", "This is a sample of text spoken in नेपाली"), new Voice("ne", "asia/ne", "ne", "nep", "", "", "", SpeechSynthesis.GENDER_MALE, "Nepali", "nep", "This is a sample of text spoken in Nepali", "This is a sample of text spoken in नेपाली"),
new Voice("nl", "europe/nl", "nl", "nld", "", "", "", SpeechSynthesis.GENDER_MALE, "Dutch", "nld", "Dit is een voorbeeld van tekst die is uitgesproken in het Nederlands"), new Voice("nl", "europe/nl", "nl", "nld", "", "", "", SpeechSynthesis.GENDER_MALE, "Dutch", "nld", "Dit is een voorbeeld van tekst die is uitgesproken in het Nederlands"),
new Voice("no", "europe/no", "no", "nor", "", "", "", SpeechSynthesis.GENDER_MALE, "Norwegian", "nor", "This is a sample of text spoken in Norwegian", "This is a sample of text spoken in norsk"), new Voice("no", "europe/no", "no", "nor", "", "", "", SpeechSynthesis.GENDER_MALE, "Norwegian", "nor", "This is a sample of text spoken in Norwegian", "This is a sample of text spoken in norsk"),
new Voice("om", "test/om", "om", "orm", "", "", "", SpeechSynthesis.GENDER_UNSPECIFIED, "Oromoo", "orm", "This is a sample of text spoken in Oromo", "This is a sample of text spoken in Oromoo"),
new Voice("or", "test/or", "or", "ori", "", "", "", SpeechSynthesis.GENDER_UNSPECIFIED, "Oriya", "ori", "This is a sample of text spoken in Oriya", "This is a sample of text spoken in ଓଡ଼ିଆ"), new Voice("or", "test/or", "or", "ori", "", "", "", SpeechSynthesis.GENDER_UNSPECIFIED, "Oriya", "ori", "This is a sample of text spoken in Oriya", "This is a sample of text spoken in ଓଡ଼ିଆ"),
new Voice("pa", "asia/pa", "pa", "pan", "", "", "", SpeechSynthesis.GENDER_UNSPECIFIED, "Panjabi", "pan", "This is a sample of text spoken in Punjabi", "This is a sample of text spoken in ਪੰਜਾਬੀ"), new Voice("pa", "asia/pa", "pa", "pan", "", "", "", SpeechSynthesis.GENDER_UNSPECIFIED, "Panjabi", "pan", "This is a sample of text spoken in Punjabi", "This is a sample of text spoken in ਪੰਜਾਬੀ"),
new Voice("pap", "test/pap", "pap", "pap", "", "", "", SpeechSynthesis.GENDER_UNSPECIFIED, "Papiamento", "pap", "This is a sample of text spoken in Papiamento"), new Voice("pap", "test/pap", "pap", "pap", "", "", "", SpeechSynthesis.GENDER_UNSPECIFIED, "Papiamento", "pap", "This is a sample of text spoken in Papiamento"),

+ 1
- 1
android/src/com/reecedunn/espeak/SpeechSynthesis.java View File

mJavaToIanaLanguageCode.put("nld", "nl"); mJavaToIanaLanguageCode.put("nld", "nl");
mJavaToIanaLanguageCode.put("nor", "no"); mJavaToIanaLanguageCode.put("nor", "no");
mJavaToIanaLanguageCode.put("ori", "or"); mJavaToIanaLanguageCode.put("ori", "or");
mJavaToIanaLanguageCode.put("orm", "om");
mJavaToIanaLanguageCode.put("pan", "pa"); mJavaToIanaLanguageCode.put("pan", "pa");
mJavaToIanaLanguageCode.put("pol", "pl"); mJavaToIanaLanguageCode.put("pol", "pl");
mJavaToIanaLanguageCode.put("por", "pt"); mJavaToIanaLanguageCode.put("por", "pt");
mLocaleFixes.put("es-la", new Locale("es", "MX")); mLocaleFixes.put("es-la", new Locale("es", "MX"));
mLocaleFixes.put("fa-pin", null); // Script tags not supported. mLocaleFixes.put("fa-pin", null); // Script tags not supported.
mLocaleFixes.put("hy-west", null); // language-variant locales not supported. mLocaleFixes.put("hy-west", null); // language-variant locales not supported.
mLocaleFixes.put("om", null); // This is an experimental voice that is not currently well tested to be used.
mLocaleFixes.put("vi-hue", new Locale("vi", "VN", "hue")); mLocaleFixes.put("vi-hue", new Locale("vi", "VN", "hue"));
mLocaleFixes.put("vi-sgn", new Locale("vi", "VN", "saigon")); mLocaleFixes.put("vi-sgn", new Locale("vi", "VN", "saigon"));
mLocaleFixes.put("zh-yue", new Locale("zh", "HK")); mLocaleFixes.put("zh-yue", new Locale("zh", "HK"));

Loading…
Cancel
Save