getting a message and a sound together - Printable Version -Shoutbox (https://shoutbox.menthix.net) +-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58) +--- Forum: Messenger Plus! for Live Messenger (/forumdisplay.php?fid=4) +---- Forum: Scripting (/forumdisplay.php?fid=39) +----- Thread: getting a message and a sound together (/showthread.php?tid=95831) getting a message and a sound together by OmarNajdi on 11-11-2010 at 03:12 PM
hi RE: getting a message and a sound together by matty on 11-11-2010 at 04:37 PM
Do you mean how do you play a sound on your local computer when you type a message or are you wanting to play a sound on your contact's computer when you type a specific message? RE: getting a message and a sound together by OmarNajdi on 11-11-2010 at 07:51 PM
first, thanks for trying to help , i wish you continue with me code: OK i need the letter in red to be spoken after i send it where should I write the code and how thanks a lot, Omar RE: getting a message and a sound together by whiz on 11-11-2010 at 08:38 PM
You still need to tell us a bit more about what exactly you want to achieve here.
jscript code:
RE: getting a message and a sound together by OmarNajdi on 11-12-2010 at 01:23 AM
sry about the code cuz I'm new RE: getting a message and a sound together by ryxdp on 11-12-2010 at 11:39 AM If you're talking about text-to-speech, I've written a script to do just that, using Windows's default TTS engine. It narrates your contact's messages with the option of saying display names as well as your own messages. Hopefully this'll help, but as it's for your school project it might not be the best of solutions. Still, you can take a look through the code if you want and adapt it to how you like, just ask and I can send it to you RE: getting a message and a sound together by OmarNajdi on 11-15-2010 at 11:59 AM
that's exactly what I want RE: getting a message and a sound together by CookieRevised on 11-15-2010 at 06:25 PM Some basic (and a bit more advanced) examples of using the Windows Speech API in JScript: jscript code:You can do a lot more though. The SAPI help file (sapi.chm) can be downloaded from: http://www.microsoft.com/downloads/en/details.asp...-B0EE-6583171B4530 RE: getting a message and a sound together by OmarNajdi on 11-18-2010 at 02:05 AM
sorry for my late answer RE: getting a message and a sound together by whiz on 11-18-2010 at 10:22 AM You should use the OnEvent_ChatWndReceiveMessage() function. Define the ActiveX object globally (outside any functions). Then you can pass the Message parameter to oVoice.Speak() within the message event. RE: getting a message and a sound together by OmarNajdi on 11-18-2010 at 11:50 AM
OK now how the final code will be? RE: getting a message and a sound together by matty on 11-18-2010 at 11:55 AM
quote:Why don't you try instead of asking everyone to do it for you? Read the documentation, look at the forms for other examples... I am sure you could figure it out. RE: getting a message and a sound together by OmarNajdi on 11-18-2010 at 09:57 PM
I've tried to do it on my one RE: getting a message and a sound together by matty on 11-18-2010 at 10:07 PM Post what you have done and we will point you in the right direction on fixing it. |