Update speak-german.ps1

This commit is contained in:
Markus Fleschutz 2021-07-14 08:40:44 +02:00 committed by GitHub
parent 6f51636211
commit 2bc38afb82
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -20,10 +20,8 @@ try {
foreach ($OtherVoice in $Voices) {
$Description = $OtherVoice.GetDescription()
if ($Description -notlike "*- German*") { continue }
# write-progress "$Text"
$Voice.Voice = $OtherVoice
[void]$Voice.Speak($Text)
# write-progress -complete "$Text"
exit 0
}
write-error "No German text-to-speech (TTS) voice found"