sandman Posted September 8, 2007 Posted September 8, 2007 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]
nfwu Posted September 8, 2007 Posted September 8, 2007 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. #) TwitterOut of date stuff:Scripts: Sudoku Solver | Webserver | 3D library (Pure AutoIt) | Wood's GadgetsUDFs: _WoodUniqueID() | _DialogEditIni() | _Console*() | _GetIPConfigData() | _URLEncode/Decode()
MHz Posted September 8, 2007 Posted September 8, 2007 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...
sandman Posted September 8, 2007 Author Posted September 8, 2007 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]
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now