mirror of
https://github.com/fleschutz/PowerShell.git
synced 2024-11-23 00:13:36 +01:00
Fixed typo
This commit is contained in:
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])"
|
||||
|
Loading…
Reference in New Issue
Block a user