From bc2a9eb1d42bb1a66b3c07d3a5b25634d9473fd8 Mon Sep 17 00:00:00 2001 From: Markus Fleschutz Date: Thu, 31 Dec 2020 09:48:02 +0000 Subject: [PATCH] Fixed typo --- Scripts/speak-text.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Scripts/speak-text.ps1 b/Scripts/speak-text.ps1 index 0dd7e88e..0cd32c16 100755 --- a/Scripts/speak-text.ps1 +++ b/Scripts/speak-text.ps1 @@ -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])"