Jump to content

Recommended Posts

Posted

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]

Posted

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.

#)

Posted

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...

:)

Posted

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]

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...