private void Uninitialize() { if (senseManager != null) { senseManager.Dispose(); senseManager = null; } if (synthesis != null) { synthesis.Dispose(); synthesis = null; } }
private void Uninitialize() { if ( senseManager != null ) { senseManager.Dispose(); senseManager = null; } if ( synthesis != null ) { synthesis.Dispose(); synthesis = null; } }
// voice_recognition.cs サンプルより private string LanguageToString( PXCMSpeechSynthesis.LanguageType language ) { switch ( language ) { case PXCMSpeechSynthesis.LanguageType.LANGUAGE_US_ENGLISH: return "US English"; case PXCMSpeechSynthesis.LanguageType.LANGUAGE_GB_ENGLISH: return "British English"; case PXCMSpeechSynthesis.LanguageType.LANGUAGE_DE_GERMAN: return "Deutsch"; case PXCMSpeechSynthesis.LanguageType.LANGUAGE_IT_ITALIAN: return "Italiano"; case PXCMSpeechSynthesis.LanguageType.LANGUAGE_BR_PORTUGUESE: return "Português"; case PXCMSpeechSynthesis.LanguageType.LANGUAGE_CN_CHINESE: return "中文"; case PXCMSpeechSynthesis.LanguageType.LANGUAGE_FR_FRENCH: return "Français"; case PXCMSpeechSynthesis.LanguageType.LANGUAGE_JP_JAPANESE: return "日本語"; case PXCMSpeechSynthesis.LanguageType.LANGUAGE_US_SPANISH: return "US Español"; case PXCMSpeechSynthesis.LanguageType.LANGUAGE_LA_SPANISH: return "LA Español"; } return "Unknown"; }