AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Text to Talk
Goto page Previous  1, 2, 3
 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions
View previous topic :: View next topic  
Author Message
Deller



Joined: 21 Nov 2007
Posts: 214
Location: 0x01101110

PostPosted: Tue Feb 12, 2008 12:34 am    Post subject: Reply with quote

This simply uses the miscosoft text to talk.
Nice job trying to take credit for it though. Wink wink
Back to top
View user's profile Send private message
Scorge



Joined: 28 Aug 2007
Posts: 10

PostPosted: Sun Aug 10, 2008 8:14 pm    Post subject: Reply with quote

I make a little interface change deleting the TALK button for simply pressing ENTER key, and added some String text while speaking

Code:

version = 1.0
Title = Talker %version%
Gui, Show, w350 h30 ,%Title%
Gui, Add, Text, x5 y5 w30 h20, Text:
Gui, Add, Edit, vsay x40 y5 w295 R1,
return

GuiClose:
ExitApp

Enter::
IfWinActive,%Title%
   Goto,speak
else
   Send,{ENTER}
Return

speak:
Gui, Submit, NoHide
GuiControl,,say,Pre-Processing...
TEMPFILE = %TEMP%\TALK.vbs
FileDelete, %TEMPFILE%
FileAppend, Dim Talk`nSet Talk = WScript.CreateObject("SAPI.SpVoice")`nTalk.Speak "%say%", %TEMPFILE%
GuiControl,,say,Speaking... You should not type while I am speaking! Hold!
RunWait, %TEMPFILE%
GuiControl,,say,Deleting...
FileDelete, %TEMPFILE%
GuiControl,,say,R E A D Y !
GuiControl,,say,
Return


Nice Script of yours btw! Very Happy
_________________
Back to top
View user's profile Send private message
totalmig



Joined: 22 Jul 2008
Posts: 122

PostPosted: Wed Oct 01, 2008 8:23 am    Post subject: Reply with quote

Getting an error in launching Talk.vbs
Back to top
View user's profile Send private message
cptjacksparrow
Guest





PostPosted: Fri Nov 07, 2008 2:03 pm    Post subject: Reply with quote

i can't get this to work. keeps giving me error at line 016
"no application is associated with the specified file for this operation
Back to top
DerRaphael



Joined: 23 Nov 2007
Posts: 604
Location: 127.0.0.1

PostPosted: Fri Nov 07, 2008 2:47 pm    Post subject: Reply with quote

a lil demo of how ahk talks to u via COM (no vbs needed)
Code:
OnExit, CleanUp

COM_Init()
pspeaker := COM_CreateObject("SAPI.SpVoice")

txt=
(Join`n
Hello i am an AHK Script talking to You!
This is line 2 of the text i have to say
)

Loop,Parse,txt,`n
   COM_Invoke(pspeaker, "Speak", A_LoopField)
ExitApp

CleanUp:
   COM_Release(pspeaker)
   COM_Term()
ExitApp

; download "com.ahk" from http://www.autohotkey.com/forum/viewtopic.php?t=22923
; and save it to same dir as this script and uncomment following line
;#include com.ahk

_________________
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions All times are GMT
Goto page Previous  1, 2, 3
Page 3 of 3

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group