Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are
spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the
password reset link.
Due to spam on this forum, all posts now need moderator approval.
Entire forum
➜ MUSHclient
➜ General
➜ Making a sound
It is now over 60 days since the last post. This thread is closed.
Refresh page
| Posted by
| Gasman
(9 posts) Bio
|
| Date
| Fri 20 Feb 2004 02:33 AM (UTC) |
| Message
| | hey i was wondering if there was a way to make a "ding" sound on my computer when on my screen it says "Better hurry, you're almost out of time for your quest!". is it possible to make mushclint trigger my speakers to make a sound, if it is possible how do i do it? thanx | | Top |
|
| Posted by
| Nick Gammon
Australia (23,165 posts) Bio
Forum Administrator |
| Date
| Reply #1 on Fri 20 Feb 2004 06:20 AM (UTC) |
| Message
| | Yes, make a trigger and click on Sound -> Browse for the sound you want it to play. There will be a ding.wav in the Windows folder somewhere. |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | | Top |
|
| Posted by
| Poromenos
Greece (1,037 posts) Bio
|
| Date
| Reply #2 on Fri 20 Feb 2004 02:34 PM (UTC) |
| Message
| | Hm, since we're on the subject, would it be possible for MUSHClient to use the SAPI engine to speak? Come to think of it, I should make a plugin that enables MUSHClient to talk, that'd be cool... I'll have to think about it, but i'm sure it's doable... |
Vidi, Vici, Veni.
http://porocrom.poromenos.org/ Read it! | | Top |
|
| Posted by
| Nick Gammon
Australia (23,165 posts) Bio
Forum Administrator |
| Date
| Reply #3 on Fri 20 Feb 2004 09:32 PM (UTC) |
| Message
| | I think I've been asked that before. I don't know how to do it, if someone has an example that would help. |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | | Top |
|
| Posted by
| Flannel
USA (1,230 posts) Bio
|
| Date
| Reply #4 on Fri 20 Feb 2004 09:50 PM (UTC) |
| Message
| | Yes, it is possible. You use VBScript, I know I have an example around here somewhere... Ill find it... |
~Flannel
Messiah of Rose
Eternity's Trials.
Clones are people two. | | Top |
|
| Posted by
| Flannel
USA (1,230 posts) Bio
|
| Date
| Reply #5 on Sat 21 Feb 2004 07:33 PM (UTC) |
| Message
| |
| Posted by
| Poromenos
Greece (1,037 posts) Bio
|
| Date
| Reply #6 on Sat 21 Feb 2004 11:58 PM (UTC) |
| Message
| Ok, here's the code:
Dim vceObject
Sub OnPluginInstall()
Set vceObject = CreateObject ("Sapi.SpVoice")
vceObject.Rate = 2 '1 is normal, more is faster :p
vceObject.Speak "Initialized engine.", 1
End Sub
Sub OnPluginClose()
Set vceObject = Nothing
End Sub
Sub sbSpeak(strText)
vceObject.Speak strText, 1
End Sub
You can download SAPI SDK 5 from Microsoft and see everything, you can change voices and such... |
Vidi, Vici, Veni.
http://porocrom.poromenos.org/ Read it! | | Top |
|
| Posted by
| Nick Gammon
Australia (23,165 posts) Bio
Forum Administrator |
| Date
| Reply #7 on Sun 22 Feb 2004 11:33 PM (UTC) |
| Message
| | So it's done, is that it? I don't need to do anything? Well done. :) |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | | Top |
|
| Posted by
| Poromenos
Greece (1,037 posts) Bio
|
| Date
| Reply #8 on Mon 23 Feb 2004 08:44 PM (UTC) |
| Message
| | Yeah, easy, isn't it? :P It's also quite useful if you want to be informed on events if you're on another window, although it'll probably choke on the medieval names and internet slang... |
Vidi, Vici, Veni.
http://porocrom.poromenos.org/ Read it! | | Top |
|
| Posted by
| Flannel
USA (1,230 posts) Bio
|
| Date
| Reply #9 on Mon 23 Feb 2004 10:21 PM (UTC) |
| Message
| It chokes on real words too. Although, you can specify some changes, if theres common words it misinterperates.
Although, Im not sure how it do it with raw SAPI |
~Flannel
Messiah of Rose
Eternity's Trials.
Clones are people two. | | Top |
|
| Posted by
| Poromenos
Greece (1,037 posts) Bio
|
| Date
| Reply #10 on Wed 25 Feb 2004 12:28 AM (UTC) |
| Message
| | That's done from the speech control panel item, there's a word button somewhere or something :p |
Vidi, Vici, Veni.
http://porocrom.poromenos.org/ Read it! | | Top |
|
| Posted by
| Flannel
USA (1,230 posts) Bio
|
| Date
| Reply #11 on Wed 25 Feb 2004 12:51 AM (UTC) Amended on Wed 25 Feb 2004 12:52 AM (UTC) by Flannel
|
| Message
| yeah, you can do it via the SAPI control panel (Ctrl Panel > Speech > SAPI then click on pronounciation), which I suppose if youre using for just your personal use, it works, but Im pretty sure you can also do it at runtime too...
Eh, I guess at runtime you can just use regexps to change the words into their phonetic spellings and then pass that to SAPI. |
~Flannel
Messiah of Rose
Eternity's Trials.
Clones are people two. | | Top |
|
The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).
To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.
33,280 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top