🐧운영체제/Windows

윈도우 - text to speech(text2speech), 목소리 및 언어 변경하기

Janger 2022. 11. 5. 04:38
728x90
사용 가능한 목소리들 확인하기
Add-Type -AssemblyName System.Speech
$speak = New-Object System.Speech.Synthesis.SpeechSynthesizer
$speak.GetInstalledVoices() | 
  Select-Object -ExpandProperty VoiceInfo | 
  Select-Object -Property Culture, Name, Gender, Age

 

목소리 설정 및 출력
Add-Type -AssemblyName System.speech
$speak = New-Object System.Speech.Synthesis.SpeechSynthesizer
$speak.SelectVoice('Microsoft Heami Desktop')
$speak.Speak('안녕하세요.')

 

출처: 

https://community.idera.com/database-tools/powershell/powertips/b/tips/posts/speech-week-using-different-voices-with-speech-synthesizer

 

Speech-Week: Using Different Voices with Speech Synthesizer

In the previous tip we showed how you can tap into the text to speech converter and speak out text. Here is a way to find out the installed languages on your system

community.idera.com

 

728x90