public static Vector<String> getDefaultVoiceExampleTexts() { String defaultVoiceName = getDefaultVoiceName(); Vector<String> defaultVoiceExampleTexts = null; defaultVoiceExampleTexts = StringUtils.processVoiceExampleText(getVoiceExampleText(defaultVoiceName)); if (defaultVoiceExampleTexts == null) // Try for general domain { String str = getExampleText("TEXT", Voice.getVoice(defaultVoiceName).getLocale()); if (str != null && str.length() > 0) { defaultVoiceExampleTexts = new Vector<String>(); defaultVoiceExampleTexts.add(str); } } return defaultVoiceExampleTexts; }
public static Vector<String> getDefaultVoiceExampleTexts() { String defaultVoiceName = getDefaultVoiceName(); Vector<String> defaultVoiceExampleTexts = null; defaultVoiceExampleTexts = StringUtils.processVoiceExampleText(getVoiceExampleText(defaultVoiceName)); if (defaultVoiceExampleTexts == null) // Try for general domain { String str = getExampleText("TEXT", Voice.getVoice(defaultVoiceName).getLocale()); if (str != null && str.length() > 0) { defaultVoiceExampleTexts = new Vector<String>(); defaultVoiceExampleTexts.add(str); } } return defaultVoiceExampleTexts; }
if (datatype != null && locale != null) { Locale loc = MaryUtils.string2locale(locale); return MaryRuntimeUtils.getExampleText(datatype, loc);
if (datatype != null && locale != null) { Locale loc = MaryUtils.string2locale(locale); return MaryRuntimeUtils.getExampleText(datatype, loc);
public static Vector<String> getDefaultVoiceExampleTexts() { String defaultVoiceName = getDefaultVoiceName(); Vector<String> defaultVoiceExampleTexts = null; defaultVoiceExampleTexts = StringUtils.processVoiceExampleText(getVoiceExampleText(defaultVoiceName)); if (defaultVoiceExampleTexts == null) // Try for general domain { String str = getExampleText("TEXT", Voice.getVoice(defaultVoiceName).getLocale()); if (str != null && str.length() > 0) { defaultVoiceExampleTexts = new Vector<String>(); defaultVoiceExampleTexts.add(str); } } return defaultVoiceExampleTexts; }
if (datatype != null && locale != null) { Locale loc = MaryUtils.string2locale(locale); return MaryRuntimeUtils.getExampleText(datatype, loc);