1
0
mirror of https://github.com/fleschutz/PowerShell.git synced 2025-06-19 11:26:43 +02:00

Fixed typo

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

@ -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])"