TonyNo Moderator Group
Joined: December 05 2001 Location: United States
Online Status: Offline Posts: 2889
|
Posted: April 16 2006 at 09:26 | IP Logged
|
|
|
After updating some code, I consolidated a common segment into a macro that may be useful for others...
This is a macro that does text to speech announcements. It is set up for people using Winamp to play music, and pauses/resumes playing during the announcement. The macro is called via the formula:
Code:
ph_macroparm ( "ANNOUNCE", "Your announcement here.", 3, 0, 0, 0 ) |
|
|
The 3 above is the time delay, in seconds, to resume playback after pausing. Since TTS returns immediately upon submitting, this delay needs to be set to whatever amount of time your annoucement will take.
I also play a wav file (attention.wav) in the macro, which you should update on your end with the sound you want to use.
Also included is another macro called Test Winamp2, which is called by Announce2. You need to create a Global Variable called WINAMP STATUS for these to function.
Announce2
Test Winamp2
|