Пример #1
0
        /// <summary>
        /// 获取本机所有语音包
        /// </summary>
        /// <returns></returns>
        public List <string> GetVoices()
        {
            List <string>       list      = new List <string>();
            ISpeechObjectTokens arrVoices = new SpVoice().GetVoices();

            for (int i = 0; i < arrVoices.Count; i++)
            {
                list.Add(arrVoices.Item(i).GetDescription());
            }
            return(list);
        }