Stopping SAPI speech output

  • Thread starter Thread starter Colin
  • Start date Start date
C

Colin

Hello all...

I'm working on a small app that uses SAPI with the widely mentioned
SpeechLib interface... App is written in VC#... It speaks fine and I can
trigger that event perfectly...

However, I am at a loss as to how to stop the speech output... I
cannot seem to find any built in command to end speech output before the
end of the string it is reading.

When I wrote apps in VB6, it worked fine... There was a function to
end the speech. I figured SpeechLib for C# would have similar
functionality, but I cannot locate it.

Any pointers would be greatly apprecaited.

Thanks,
Colin
 
To end the speech you have to do this

//this will end the speech output.
mySpeechClass.Skip("Sentence", 1);

//To pause
mySpeechClass.Pause();

//To Resume
mySpeechClass.Resume();
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top