■ SpeechSynthesizer 클래스 : GetInstalledVoices 메소드를 사용해 설치 음성 목록 구하기

------------------------------------------------------------------------------------------------------------------------

using System;

using System.Speech.Synthesis;

 

SpeechSynthesizer speechSynthesizer = new SpeechSynthesizer();

 

ReadOnlyCollection<InstalledVoice> installVoiceCollection = speechSynthesizer.GetInstalledVoices();

 

foreach(InstalledVoice installedVoice in installVoiceCollection)

{

    Console.WriteLine(installedVoice.VoiceInfo.Name);

}

------------------------------------------------------------------------------------------------------------------------

※ System.Speech 참조를 설정한다.

Posted by 사용자 icodebroker
TAG

댓글을 달아 주세요