[Home] [Downloads] [Search] [Help/forum]

Gammon Forum

See www.mushclient.com/spam for dealing with forum spam. Please read the MUSHclient FAQ!

[Folder]  Entire forum
-> [Folder]  MUSHclient
. -> [Folder]  General
. . -> [Subject]  Implimenting a Text-to-Speech script.
Home  |  Users  |  Search  |  FAQ
Username:
Register forum user name
Password:
Forgotten password?

Implimenting a Text-to-Speech script.

It is now over 60 days since the last post. This thread is closed.     [Refresh] Refresh page


Posted by Heuwyn   (2 posts)  [Biography] 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.


[Go to top] top

Posted by Flannel   USA  (1,230 posts)  [Biography] bio
Date Reply #1 on Sun 10 Oct 2004 10:55 PM (UTC)
Message
Heres an example using MSAgent
http://www.gammon.com.au/forum/bbshowpost.php?bbsubject_id=1227

If Flute, or Festival have a scripting interface (I havent looked) and/or are COM objects, then yeah, it can be done.

~Flannel

Messiah of Rose
Eternity's Trials.

Clones are people two.
[Go to top] top

Posted by Heuwyn   (2 posts)  [Biography] 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...
[Go to top] top

Posted by Flannel   USA  (1,230 posts)  [Biography] 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.
[Go to top] top

Posted by Poromenos   Greece  (1,037 posts)  [Biography] 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!
[Go to top] 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.


3,471 views.

It is now over 60 days since the last post. This thread is closed.     [Refresh] Refresh page

Go to topic:           Search the forum


[Go to top] top

Quick links: MUSHclient. MUSHclient help. Forum shortcuts. Posting templates. Lua modules. Lua documentation.

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.

[Home]


Written by Nick Gammon - 5K   profile for Nick Gammon on Stack Exchange, a network of free, community-driven Q&A sites   Marriage equality

Comments to: Gammon Software support
[RH click to get RSS URL] Forum RSS feed ( https://gammon.com.au/rss/forum.xml )

[Best viewed with any browser - 2K]    [Hosted at FutureQuest]