i542 Posted September 7, 2005 Share Posted September 7, 2005 Hello! Can someone tell me how to script can talk :"> (this is my first post, from Croatia). Please post an example with speech function. THANKS! i542. I can do signature me. Link to comment Share on other sites More sharing options...
GaryFrost Posted September 7, 2005 Share Posted September 7, 2005 This uses the beta $oMyError = ObjEvent("AutoIt.Error","MyErrFunc"); Install a custom error handler _TalkOBJ('This is auto it beta speaking.', 1) _TalkOBJ('This is auto it beta speaking.', 2) _TalkOBJ('This is auto it beta speaking.', 3) ;voice params: ; ;1 - Microsoft Mary ;1 - Microsoft Sam ;3 - Microsoft Mike Func _TalkOBJ($s_text, $s_voice = 3) Local $o_speech = ObjCreate ("SAPI.SpVoice") Select Case $s_voice == 1 $o_speech.Voice = $o_speech.GetVoices("Name=Microsoft Mary", "Language=409").Item(0) Case $s_voice == 2 $o_speech.Voice = $o_speech.GetVoices("Name=Microsoft Mike", "Language=409").Item(0) Case $s_voice == 3 $o_speech.Voice = $o_speech.GetVoices("Name=Microsoft Sam", "Language=409").Item(0) EndSelect $o_speech.Speak ($s_text) $o_speech = "" EndFunc ;==>_TalkOBJ ; This is my custom error handler Func MyErrFunc() $HexNumber=hex($oMyError.number,8) Msgbox(0,"","We intercepted a COM Error !" & @CRLF & _ "Number is: " & $HexNumber & @CRLF & _ "Windescription is: " & $oMyError.windescription ) SetError(1); something to check for when this function returns Endfunc I believe if you search the scripts and scraps there is some scripts that use the release version, but requires writing/reading file(s). Gary SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference. Link to comment Share on other sites More sharing options...
i542 Posted September 7, 2005 Author Share Posted September 7, 2005 Thanks! i542. I can do signature me. Link to comment Share on other sites More sharing options...
Valuater Posted September 7, 2005 Share Posted September 7, 2005 This uses the beta$oMyError = ObjEvent("AutoIt.Error","MyErrFunc"); Install a custom error handler _TalkOBJ('This is auto it beta speaking.', 1) _TalkOBJ('This is auto it beta speaking.', 2) _TalkOBJ('This is auto it beta speaking.', 3) ;voice params: ; ;1 - Microsoft Mary ;1 - Microsoft Sam ;3 - Microsoft Mike Func _TalkOBJ($s_text, $s_voice = 3) Local $o_speech = ObjCreate ("SAPI.SpVoice") Select Case $s_voice == 1 $o_speech.Voice = $o_speech.GetVoices("Name=Microsoft Mary", "Language=409").Item(0) Case $s_voice == 2 $o_speech.Voice = $o_speech.GetVoices("Name=Microsoft Mike", "Language=409").Item(0) Case $s_voice == 3 $o_speech.Voice = $o_speech.GetVoices("Name=Microsoft Sam", "Language=409").Item(0) EndSelect $o_speech.Speak ($s_text) $o_speech = "" EndFunc ;==>_TalkOBJ ; This is my custom error handler Func MyErrFunc() $HexNumber=hex($oMyError.number,8) Msgbox(0,"","We intercepted a COM Error !" & @CRLF & _ "Number is: " & $HexNumber & @CRLF & _ "Windescription is: " & $oMyError.windescription ) SetError(1); something to check for when this function returns EndfuncI believe if you search the scripts and scraps there is some scripts that use the release version, but requires writing/reading file(s).Gary<{POST_SNAPBACK}>maybe 1,2,31 - Microsoft Mary ;1 - Microsoft Sam ;3 - Microsoft Mike8) Link to comment Share on other sites More sharing options...
GaryFrost Posted September 7, 2005 Share Posted September 7, 2005 more like ;1 - Microsoft Mary ;3 - Microsoft Sam ;2 - Microsoft Mike SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference. Link to comment Share on other sites More sharing options...
i542 Posted September 8, 2005 Author Share Posted September 8, 2005 (edited) Is this importrant or not? If is that only a comment... ;voice params: ; ;1 - Microsoft Mary ;1 - Microsoft Sam ;3 - Microsoft Mike i542. P.S. If is error in post, sorry. Edited July 7, 2006 by i542 I can do signature me. Link to comment Share on other sites More sharing options...
GaryFrost Posted September 8, 2005 Share Posted September 8, 2005 not, like you said was just a comment SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference. Link to comment Share on other sites More sharing options...
i542 Posted September 8, 2005 Author Share Posted September 8, 2005 In windows 98 not works. In windows XP works. If I install SAPI 5.0 on 98 (my current version is 4.0), will be works? I have 2 windows on 1 computer (crazy but it's true). i542. P.S. If is error in post, sorry. I can do signature me. Link to comment Share on other sites More sharing options...
GaryFrost Posted September 8, 2005 Share Posted September 8, 2005 can't help you with win98 all i have is win xp at the moment. SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference. Link to comment Share on other sites More sharing options...
i542 Posted September 8, 2005 Author Share Posted September 8, 2005 OK.Where I can find a Mary and Mike voices. With SAPI 4 comes only Sam. And one more question: How to create a quote in message? i542. I can do signature me. Link to comment Share on other sites More sharing options...
GaryFrost Posted September 8, 2005 Share Posted September 8, 2005 you should be able to get more voices i believe from microsoft, you'll have to search there. SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference. Link to comment Share on other sites More sharing options...
i542 Posted September 8, 2005 Author Share Posted September 8, 2005 Thank you. i542. I can do signature me. Link to comment Share on other sites More sharing options...
dnsi Posted June 19, 2006 Share Posted June 19, 2006 I have 3 systems before: WIN 98 WIN 2000 WIN XP and im thinking about WIN 2005. My Programs:Flip-Flop File Encryption SysyemMULTIPLAYER-SOCKETSERVERHide An Archive In A Picture Link to comment Share on other sites More sharing options...
Simucal Posted June 20, 2006 Share Posted June 20, 2006 The microsoft voices got to me so bad I invested in Audrey, a british accented voice from At&t's natural voice lab. Still isnt perfect but worlds apart from what windows comes with. AutoIt Scripts:Aimbot: Proof of Concept - PixelSearching Aimbot with several search/autoshoot/lock-on techniques.Sliding Toolbar - Add a nice Sliding Toolbar to your next script. Click the link to see an animation of it in action!FontInfo UDF - Get list of system fonts, or search to see if a particular font is installed.Get Extended Property UDF - Retrieve a files extended properties (e.g., video/image dimensions, file version, bitrate of song/video, etc) Link to comment Share on other sites More sharing options...
AutoItKing Posted June 20, 2006 Share Posted June 20, 2006 I believe that was made by erifash and enhanced by someone else. Correct me if I'm wrong. http://www.autoitking.co.nr Site is DOWN | My deviantART | No Topic Topic - Don't do it!-------------------- UDF's/Scripts:AutoIt: [BenEditor 3.6] [_ShutDown()]PHP: [CommentScript]Web Based AutoIt: [MemStats] [HTML to AU3] [User LogIn and SignUp script] Link to comment Share on other sites More sharing options...
i542 Posted June 20, 2006 Author Share Posted June 20, 2006 Microsoft's voices don't speaks text clear enough... There was so many time lost from my first post...ah... i542 I can do signature me. Link to comment Share on other sites More sharing options...
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