Sign in to follow this  
Followers 0
sandman

Stop TTS?

4 posts in this topic

How can I stop TTS from speaking? Is there some kind of Stop function included in SAPI.SpVoice?

For clarification:

Func _Talk($sText)
  Local $oSpeech = ObjCreate("SAPI.SpVoice")
  $oSpeech.Speak($sText)
  $oSpeech = ""
EndFunc

[center]"Yes, [our app] runs on Windows as well as Linux, but if you had a Picasso painting, would you put it in the bathroom?" -BitchX.com (IRC client)"I would change the world, but they won't give me the source code." -Unknownsite . blog . portfolio . claimidcode.is.poetry();[/center]

Share this post


Link to post
Share on other sites



Execution of the script does not continue until TTS stops speaking. That is, your program hangs there until TTS is done.

You can prevent this by breaking the speech up into sentences, then testing if you need to stop each time a sentence completes.

#)

Share this post


Link to post
Share on other sites

How can I stop TTS from speaking? Is there some kind of Stop function included in SAPI.SpVoice?

A good example here of manipulating SAPI with stop, pause...

:)

Share this post


Link to post
Share on other sites

A good example here of manipulating SAPI with stop, pause...

:)

Thanks, that worked fine.

[center]"Yes, [our app] runs on Windows as well as Linux, but if you had a Picasso painting, would you put it in the bathroom?" -BitchX.com (IRC client)"I would change the world, but they won't give me the source code." -Unknownsite . blog . portfolio . claimidcode.is.poetry();[/center]

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0