mirror of
https://github.com/fleschutz/PowerShell.git
synced 2024-11-23 08:23:14 +01:00
Update speak-german.ps1
This commit is contained in:
parent
6f51636211
commit
2bc38afb82
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user