Fixed typo

This commit is contained in:
Markus Fleschutz 2020-12-31 10:11:51 +00:00
parent 50cf8e6a16
commit 384002f9ec

View File

@ -8,7 +8,7 @@
try { try {
$Voice = new-object -ComObject SAPI.SPVoice $Voice = new-object -ComObject SAPI.SPVoice
Result = $Voice.Speak("This is the default voice") $Result = $Voice.Speak("This is the default voice")
$Voice.rate = 10 $Voice.rate = 10
$Result = $Voice.Speak("Let's speak fast") $Result = $Voice.Speak("Let's speak fast")
@ -27,7 +27,7 @@ try {
$Description = $OtherVoice.GetDescription() $Description = $OtherVoice.GetDescription()
write-output "This is: $Description" write-output "This is: $Description"
$Voice.Voice = $OtherVoice $Voice.Voice = $OtherVoice
Result = $Voice.Speak("1 2 3 - this is $Description") $Result = $Voice.Speak("1 2 3 - this is $Description")
} }
exit 0 exit 0
} catch { } catch {