private string LanguageToString(PXCMSpeechRecognition.LanguageType language) { switch (language) { case PXCMSpeechRecognition.LanguageType.LANGUAGE_US_ENGLISH: return("US English"); case PXCMSpeechRecognition.LanguageType.LANGUAGE_GB_ENGLISH: return("British English"); case PXCMSpeechRecognition.LanguageType.LANGUAGE_DE_GERMAN: return("Deutsch"); case PXCMSpeechRecognition.LanguageType.LANGUAGE_IT_ITALIAN: return("italiano"); case PXCMSpeechRecognition.LanguageType.LANGUAGE_BR_PORTUGUESE: return("PORTUGUÊS"); case PXCMSpeechRecognition.LanguageType.LANGUAGE_CN_CHINESE: return("中文"); case PXCMSpeechRecognition.LanguageType.LANGUAGE_FR_FRENCH: return("Français"); case PXCMSpeechRecognition.LanguageType.LANGUAGE_JP_JAPANESE: return("日本語"); case PXCMSpeechRecognition.LanguageType.LANGUAGE_US_SPANISH: return("español"); // case PXCMSpeechRecognition.LanguageType.LANGUAGE_RU_RUSSIAN: return "Русский"; } return(null); }
// voice_recognition.cs サンプルより private string LanguageToString(PXCMSpeechRecognition.LanguageType language) { switch (language) { case PXCMSpeechRecognition.LanguageType.LANGUAGE_US_ENGLISH: return("US English"); case PXCMSpeechRecognition.LanguageType.LANGUAGE_GB_ENGLISH: return("British English"); case PXCMSpeechRecognition.LanguageType.LANGUAGE_DE_GERMAN: return("Deutsch"); case PXCMSpeechRecognition.LanguageType.LANGUAGE_IT_ITALIAN: return("Italiano"); case PXCMSpeechRecognition.LanguageType.LANGUAGE_BR_PORTUGUESE: return("Português"); case PXCMSpeechRecognition.LanguageType.LANGUAGE_CN_CHINESE: return("中文"); case PXCMSpeechRecognition.LanguageType.LANGUAGE_FR_FRENCH: return("Français"); case PXCMSpeechRecognition.LanguageType.LANGUAGE_JP_JAPANESE: return("日本語"); case PXCMSpeechRecognition.LanguageType.LANGUAGE_US_SPANISH: return("US Español"); case PXCMSpeechRecognition.LanguageType.LANGUAGE_LA_SPANISH: return("LA Español"); } return("Unknown"); }