Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Play Sound Server Side

Status
Not open for further replies.

Nutthick

MIS
Jan 14, 2004
126
GB
Is there anyway to get perl to play a sound file on the server hosting the perl script. I'm looking at a cheap way to put together a PA system, and thought if the operator could http to the system, them click on a sound it would be a smal system. I'm just stuck on how to get it to play to sound on the server, so it can be amplified up. Any ideas?

Thanks
 
Have a look on for 'sound'

Paul
------------------------------------
Spend an hour a week on CPAN, helps cure all known programming ailments ;-)
 
You don't mention what kind of server you are talking about.
If you were talking about Linux for example, you could use "play" to play wav files or mpg123 to play mp3 files.


Trojan.
 
TrojanWarBlade

It would most likely be a windows box. I'd love to use a slackware box, but I'm not confident enough in it yet. The more I look into it the more I'm thinking a Windows box, running Apache and perl scripts. Some of the PA announcements have to be timed to fire off on their own, rather than someone clicking an html button. That sort of stuff I'm was going to write some java for, although crontab now sounds even easier.
 
If you do decide to go Windows, but still want the portability to slide to Linux later, I found this nice Perl implementation of cron for Windows on the web... It's not 100% there yet (to run as a service, you'd have to set up SRVANY.exe to handle it), but I'd say it's about 98% there.

- George
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top