Active TopicsActive Topics  Display List of Forum MembersMemberlist  Search The ForumSearch  HelpHelp
  RegisterRegister  LoginLogin
PowerHome Programming
 PowerHome Messageboard : PowerHome Programming
Subject Topic: Announcement Macro Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
TonyNo
Moderator Group
Moderator Group
Avatar

Joined: December 05 2001
Location: United States
Online Status: Offline
Posts: 2889
Posted: April 16 2006 at 09:26 | IP Logged Quote TonyNo

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
Back to Top View TonyNo's Profile Search for other posts by TonyNo Visit TonyNo's Homepage
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum