From 943752b6b7bec8a0c9bc127c142580921821caa6 Mon Sep 17 00:00:00 2001 From: Markus Fleschutz Date: Thu, 31 Dec 2020 09:49:25 +0000 Subject: [PATCH] Improved the script --- Scripts/speak-text.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Scripts/speak-text.ps1 b/Scripts/speak-text.ps1 index 0cd32c16..af4d2f35 100755 --- a/Scripts/speak-text.ps1 +++ b/Scripts/speak-text.ps1 @@ -14,7 +14,7 @@ try { } $Voice = new-object -ComObject SAPI.SPVoice - $Voice.Speak($Text); + $Result = $Voice.Speak($Text) exit 0 } catch { write-error "ERROR in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"