Microsoft Speech API (SAPI) SpVoice A Way for a Stop function
Solution 1:
To stop the Speech without having to deal with the exception, use the Skip
method on SpVoice
. Documentation here.
This should work, as it will skip int.MaxValue
sentences:
public void StopSpeak()
{
Speaker.Skip("Sentence", int.MaxValue);
}