diff --git a/Functions/Speak.md b/Functions/Speak.md index 4435b6d..d8d4208 100644 --- a/Functions/Speak.md +++ b/Functions/Speak.md @@ -45,10 +45,10 @@ param ( [string]$Sentence ) -$s.Voice = $s.GetVoices().Item(0) $s=New-Object -ComObject SAPI.SpVoice +$s.Voice = $s.GetVoices().Item(0) $s.Rate = -2 -$s.Speak($Sentence) +$null = $s.Speak($Sentence) } ```