mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-04-21 17:38:19 +02:00
Fixed typo
This commit is contained in:
parent
cd7c39c407
commit
bc2a9eb1d4
@ -13,8 +13,8 @@ try {
|
|||||||
$Text = read-host "Enter text to speak"
|
$Text = read-host "Enter text to speak"
|
||||||
}
|
}
|
||||||
|
|
||||||
$voice = New-Object ComObject SAPI.SPVoice
|
$Voice = new-object -ComObject SAPI.SPVoice
|
||||||
$voice.Speak($Text);
|
$Voice.Speak($Text);
|
||||||
exit 0
|
exit 0
|
||||||
} catch {
|
} catch {
|
||||||
write-error "ERROR in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
write-error "ERROR in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
||||||
|
Loading…
Reference in New Issue
Block a user