[C#/COMMON] SpeechSynthesizer 클래스 : GetInstalledVoices 메소드를 사용해 설치 음성 목록 구하기
C#/Common 2019. 6. 11. 22:41728x90
반응형
■ 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 참조를 설정한다.
728x90
반응형
'C# > Common' 카테고리의 다른 글
[C#/COMMON] 현재 실행하고 있는 메소드명 구하기 (0) | 2019.06.25 |
---|---|
[C#/COMMON] 윈도우즈 서비스를 특정 계정으로 시작하기 (0) | 2019.06.20 |
[C#/COMMON] 윈도우즈 서비스 내에서 사용자 계정 변경하기 (0) | 2019.06.20 |
[C#/COMMON] AppDomain 클래스 : 별도 애플리케이션 도메인에서 특정 어셈블리 로드하기 (0) | 2019.06.18 |
[C#/COMMON] AppDomain 클래스 : 애플리케이션 그림자 복사(Shadow Copy) 사용하기 (0) | 2019.06.18 |
[C#/COMMON] SpeechSynthesizer 클래스 : GetInstalledVoices 메소드를 사용해 설치 음성 목록 구하기 (0) | 2019.06.11 |
[C#/COMMON] UNIX 타임 스탬프 구하기 (0) | 2019.06.09 |
[C#/COMMON] WIN32 API를 사용해 최상위 윈도우 여부 구하기 (0) | 2019.06.06 |
[C#/COMMON] Process 클래스 : 윈도우즈 서비스 실행하기 (0) | 2019.06.06 |
[C#/COMMON] 공용체(Union) 구조체 사용하기 (0) | 2019.06.02 |
[C#/COMMON] Socket 클래스 : 소켓 연결시 시간 제한하기 (0) | 2019.06.02 |
댓글을 달아 주세요