Exemple #1
0
        private void GatherVoices()
        {
            Voices = new List <string>();

            string enumVoice = LoquendoX.EnumFirstVoice("");

            while (enumVoice != "")
            {
                Voices.Add(enumVoice);
                enumVoice = LoquendoX.EnumNextVoice();
                //string lan = LoquendoX.GuessLanguage(enumVoice);
                //lan = LoquendoX.GuessFileLanguage(enumVoice);
            }
        }
Exemple #2
0
        private bool IsLoquendoVoice(string voice)
        {
            if (Voices == null)
            {
                Voices = new List <string>();
            }
            bool retVal = false;

            string enumVoice = LoquendoX.EnumFirstVoice("");

            while (enumVoice != "")
            {
                if (enumVoice.ToLower() == voice.ToLower())
                {
                    retVal = true;
                    break;
                }

                enumVoice = LoquendoX.EnumNextVoice();
            }
            return(retVal);
        }