Fixed typo

This commit is contained in:
Markus Fleschutz 2020-12-31 09:48:02 +00:00
parent cd7c39c407
commit bc2a9eb1d4

View File

@ -13,8 +13,8 @@ try {
$Text = read-host "Enter text to speak"
}
$voice = New-Object ComObject SAPI.SPVoice
$voice.Speak($Text);
$Voice = new-object -ComObject SAPI.SPVoice
$Voice.Speak($Text);
exit 0
} catch {
write-error "ERROR in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"