What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » getting a message and a sound together

getting a message and a sound together
Author: Message:
CookieRevised
Elite Member
*****

Avatar

Posts: 15517
Reputation: 173
– / Male / Flag
Joined: Jul 2003
Status: Away
RE: getting a message and a sound together
Some basic (and a bit more advanced) examples of using the Windows Speech API in JScript:
jscript code:
var oVoice = new ActiveXObject("SAPI.SpVoice");

with (oVoice) {
    Voice = GetVoices()[0];
    Volume = 100;

    // basic example
    Rate = 1;
    Speak("Hello. This is a basic example of the speech Windows API");

    // XML example, changing pitch
    Rate = -2;
    Speak('<pitch middle="-25">Hello, I am a robot</pitch>' ,8);

    // XML example, using some other tags
    Rate = 0;
    Speak('<pitch absmiddle="30"><rate absspeed="-2">Now I\'m going to use a whining voice to spell the word: school<silence msec="500"/><rate speed="-3"><spell>school</spell></rate></rate></pitch>', 8);

    // XML example, difference in pronunciations
    Rate = 0;
    Speak('Did you <partofsp part="verb">record</partofsp> that <partofsp part="noun">record</partofsp>?',8);
}
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

This post was edited on 11-15-2010 at 06:30 PM by CookieRevised.
.-= A 'frrrrrrrituurrr' for Wacky =-.
11-15-2010 06:25 PM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
getting a message and a sound together - by OmarNajdi on 11-11-2010 at 03:12 PM
RE: getting a message and a sound together - by matty on 11-11-2010 at 04:37 PM
RE: getting a message and a sound together - by OmarNajdi on 11-11-2010 at 07:51 PM
RE: getting a message and a sound together - by whiz on 11-11-2010 at 08:38 PM
RE: getting a message and a sound together - by OmarNajdi on 11-12-2010 at 01:23 AM
RE: getting a message and a sound together - by ryxdp on 11-12-2010 at 11:39 AM
RE: getting a message and a sound together - by OmarNajdi on 11-15-2010 at 11:59 AM
RE: getting a message and a sound together - by CookieRevised on 11-15-2010 at 06:25 PM
RE: getting a message and a sound together - by OmarNajdi on 11-18-2010 at 02:05 AM
RE: getting a message and a sound together - by whiz on 11-18-2010 at 10:22 AM
RE: getting a message and a sound together - by OmarNajdi on 11-18-2010 at 11:50 AM
RE: getting a message and a sound together - by matty on 11-18-2010 at 11:55 AM
RE: getting a message and a sound together - by OmarNajdi on 11-18-2010 at 09:57 PM
RE: getting a message and a sound together - by matty on 11-18-2010 at 10:07 PM


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On