728x90
반응형
728x170
using System.Speech.Synthesis;
SpeechSynthesizer speechSynthesizer = new SpeechSynthesizer();
speechSynthesizer.SetOutputToDefaultAudioDevice();
speechSynthesizer.Volume = 50;
speechSynthesizer.SelectVoice("Microsoft Heami Desktop");
speechSynthesizer.SpeakAsync("안녕하세요. 음성 출력 프로그램 입니다.");
※ System.Speech.dll 참조를 설정한다.
※ 윈도우즈 10 한글 버전에서 테스트 했다.
728x90
반응형
그리드형(광고전용)
'C# > Common' 카테고리의 다른 글
[C#/COMMON] SpeechRecognitionEngine 클래스 : InstalledRecognizers 정적 메소드를 사용해 설치된 인식기 나열하기 (0) | 2016.02.26 |
---|---|
[C#/COMMON] 클래스 계층도 만들기 (0) | 2016.02.06 |
[C#/COMMON] 자손 타입 리스트 구하기 (0) | 2016.02.06 |
[C#/COMMON] Console 클래스 : ForegroundColor 정적 속성을 사용해 문자열 출력시 색상 설정하기 (0) | 2016.01.28 |
[C#/COMMON] Publish 클래스 : GacInstall 메소드를 사용해 어셈블리 GAC 등록하기 (0) | 2016.01.27 |
[C#/COMMON] SpeechSynthesizer 클래스 : 음성 출력하기 (0) | 2016.01.27 |
[C#/COMMON] SpeechRecognitionEngine 클래스 : 음성 인식 처리하기 (0) | 2016.01.27 |
[C#/COMMON] 닷넷 어셈블리 2.0 버전을 닷넷 4.5 프로젝트에서 사용하기 (0) | 2016.01.25 |
[C#/COMMON] SpeechSynthesizer 클래스 : 한글 음성 출력하기 (0) | 2016.01.20 |
[C#/COMMON] ExpandoObject 클래스 : INotifyPropertyChanged 인터페이스 구현하기 (0) | 2016.01.20 |
[C#/COMMON] ExpandoObject 클래스 : 멤버 제거하기 (0) | 2016.01.20 |
댓글을 달아 주세요