1
0
mirror of https://github.com/fleschutz/PowerShell.git synced 2025-04-03 13:40:35 +02:00

Update speak-spanish.ps1

This commit is contained in:
Markus Fleschutz 2022-09-04 11:00:25 +02:00 committed by GitHub
parent c6d500eeb6
commit bbae36eaa2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -10,7 +10,7 @@
.LINK
https://github.com/fleschutz/PowerShell
.NOTES
Author: Markus Fleschutz / License: CC0
Author: Markus Fleschutz | License: CC0
#>
param([string]$text = "")
@ -25,7 +25,6 @@ try {
[void]$TTSVoice.Speak($text)
exit 0 # success
}
}
throw "No Spanish text-to-speech voice found - please install one."
} catch {
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"