How to stop a streaming audio

646 views Asked by At

How do I stop a audio stream once I play it using sapi. Do I have to skip the whole set of sentences ?

Edit : How to stop it once I have paused the audio.

1

There are 1 answers

2
erloewe On BEST ANSWER

How about something like

Private Sub start()
objVoice.Speak "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", SVSFlagsAsync
End Sub

Private Sub stop()
objVoice.Speak "", SVSFPurgeBeforeSpeak
End Sub 

Please read about SVSFPurgeBeforeSpeak.