In PowerShell 5.1.18362.752, when I try to execute the following:
Add-Type -AssemblyName System.Speech; $x = New-Object System.Speech.Synthesis.SpeechSynthesizer; $x.Speak('Hello. This is a sentence.')
I cannot seem to interrupt it with Ctrl+C while it's speaking. The whole input is read out loud. Is there any way to stop this before it would finish by itself? I know I can close PowerShell which stops the speech immediately, but I am looking for something more graceful, especially since it takes one or more seconds for my PS to restart -- and for my usecase I need to be able to interrupt speech and rapidly start a different one without the user having to wait several seconds.