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.
Entire forum
➜ MUSHclient
➜ General
➜ Implimenting a Text-to-Speech script.
Implimenting a Text-to-Speech script.
|
It is now over 60 days since the last post. This thread is closed.
Refresh page
Posted by
| Heuwyn
(2 posts) Bio
|
Date
| Sun 10 Oct 2004 03:49 PM (UTC) Amended on Sun 10 Oct 2004 03:53 PM (UTC) by Heuwyn
|
Message
| Back in 2000 for Mushclient 3.00, there was a suggestion (321) for implimenting a text-to-speech feature. Such a feature could be very nice if you wish to get other non-computer things done while listening in on the 'tavern chatter'.
Due to the size and trouble of directly implimenting such a whistle, it was dismissed as a possible feature and a vague reference to a possible scripting solution was made. Unfortunately, I can't make heads or tails of that scripting solution.
Although this feature request was more or less closed 3 years ago, it seems to me that it really hasn't been given a solution that anyone can impliment. Is it possible someone could code a plug-in using Flite (http://www.speech.cs.cmu.edu/flite/) or Festival, and posted somewhere conspicuously?
Sorry if someone's already put something like this together, but searches in the forums haven't revealed anything about it since.
| Top |
|
Posted by
| Flannel
USA (1,230 posts) Bio
|
Date
| Reply #1 on Sun 10 Oct 2004 10:55 PM (UTC) |
Message
| |
Posted by
| Heuwyn
(2 posts) Bio
|
Date
| Reply #2 on Mon 11 Oct 2004 06:43 AM (UTC) |
Message
| I gave the script there a try and it almost works. The character can be shown and everything from Mushclient can be piped in using Relaytell into the Agent's word-balloon... unfortunately, it's dead silent. :/ Any idea what I'm doing wrong? The Agents seem to speak when tested on the MS Agent page... | Top |
|
Posted by
| Flannel
USA (1,230 posts) Bio
|
Date
| Reply #3 on Mon 11 Oct 2004 07:42 AM (UTC) Amended on Mon 11 Oct 2004 07:43 AM (UTC) by Flannel
|
Message
| In that example, there is a line (cat.think sentence), change the think to speak, and then youll get the words (and text).
You can also change those timer things to DoAfter's, thatll clean it up a bit. |
~Flannel
Messiah of Rose
Eternity's Trials.
Clones are people two. | Top |
|
Posted by
| Poromenos
Greece (1,037 posts) Bio
|
Date
| Reply #4 on Mon 11 Oct 2004 04:05 PM (UTC) |
Message
| Actually that's a bit of overkill for what you're trying to do. As I posted in http://www.gammon.com.au/forum/bbshowpost.php?bbsubject_id=3804 the code is 2-3 lines. This will do the trick:
Set vceObject = CreateObject ("Sapi.SpVoice")
vceObject.Rate = 2 '1 is normal, more is faster
vceObject.Speak "Initialized engine.", 1
I think this requires SAPI SDK 5 which comes with Microsoft Office XP or you can download it from MS's website for free. |
Vidi, Vici, Veni.
http://porocrom.poromenos.org/ Read it! | 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.
16,601 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top