Пример #1
0
        public CeVIOController(SpeechEngineInfo info)
        {
            Info = info;

            _cevio       = new CeVIOEnumerator();
            _libraryName = info.LibraryName;
        }
Пример #2
0
        public static SpeechEngineInfo[] GetAllSpeechEngine()
        {
            List <SpeechEngineInfo> info = new List <SpeechEngineInfo>();

            // VOICEROID+ を列挙
            var voiceroidPlus = new VoiceroidPlusEnumerator().GetSpeechEngineInfo();

            if (voiceroidPlus.Length > 0)
            {
                info.AddRange(voiceroidPlus);
            }

            // VOICEROID2 を列挙
            var voiceroid2 = new Voiceroid2Enumerator().GetSpeechEngineInfo();

            if (voiceroid2.Length > 0)
            {
                info.AddRange(voiceroid2);
            }

            var una = new UnaEnumerator().GetSpeechEngineInfo();

            if (una.Length > 0)
            {
                info.AddRange(una);
            }

            //CeVIO を列挙
            var cevio = new CeVIOEnumerator().GetSpeechEngineInfo();

            if (cevio.Length > 0)
            {
                info.AddRange(cevio);
            }

            // SAPI5 を列挙
            var sapi5 = new SAPI5Enumerator();

            info.AddRange(sapi5.GetSpeechEngineInfo());

            return(info.ToArray());
        }