From fcd4edfd167c5595bdaeb5aba5215f07ca6ccfcc Mon Sep 17 00:00:00 2001 From: "Reece H. Dunn" Date: Sun, 11 Oct 2015 12:13:02 +0100 Subject: [PATCH] Enable om language support. --- .../eSpeakTests/src/com/reecedunn/espeak/test/VoiceData.java | 1 + android/src/com/reecedunn/espeak/SpeechSynthesis.java | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/android/eSpeakTests/src/com/reecedunn/espeak/test/VoiceData.java b/android/eSpeakTests/src/com/reecedunn/espeak/test/VoiceData.java index dadfd6af..71c9fd69 100644 --- a/android/eSpeakTests/src/com/reecedunn/espeak/test/VoiceData.java +++ b/android/eSpeakTests/src/com/reecedunn/espeak/test/VoiceData.java @@ -135,6 +135,7 @@ public class VoiceData 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("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("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"), diff --git a/android/src/com/reecedunn/espeak/SpeechSynthesis.java b/android/src/com/reecedunn/espeak/SpeechSynthesis.java index 5bb82952..8766ba41 100644 --- a/android/src/com/reecedunn/espeak/SpeechSynthesis.java +++ b/android/src/com/reecedunn/espeak/SpeechSynthesis.java @@ -408,6 +408,7 @@ public class SpeechSynthesis { mJavaToIanaLanguageCode.put("nld", "nl"); mJavaToIanaLanguageCode.put("nor", "no"); mJavaToIanaLanguageCode.put("ori", "or"); + mJavaToIanaLanguageCode.put("orm", "om"); mJavaToIanaLanguageCode.put("pan", "pa"); mJavaToIanaLanguageCode.put("pol", "pl"); mJavaToIanaLanguageCode.put("por", "pt"); @@ -447,7 +448,6 @@ public class SpeechSynthesis { mLocaleFixes.put("es-la", new Locale("es", "MX")); mLocaleFixes.put("fa-pin", null); // Script tags 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-sgn", new Locale("vi", "VN", "saigon")); mLocaleFixes.put("zh-yue", new Locale("zh", "HK"));