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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

output audio clip ?

Status
Not open for further replies.

NewtownGuy

Technical User
Jul 27, 2007
146
US
Hello,

I want to output an audio file through one of the audio outputs on a Fedora Core 3 machine when a user clicks on link on a web page that's hosted by an Apache HTTPD server on that machine. Different links will output different audio clips.

How do I configure an audio port for outputting a sound file ? How do I configure data rate, type of compression, etc ? What service do I need to make writable by anyone who accesses the HTTPD server ?

How do I know when the file has been completely output ?

Thanks !

-- NewtownGuy
 
Are you saying that if someone clicks a link on a web page, you want to hear some Twisted Sister coming out comin' outa those big honkin' speakers you got connected to the server? Or do you want the person who clicked the link to hear the stylings of Vanila Ice?
 
TO: RhythmAce

This is an industrial-control application, not a web browsing application. It uses a Linux Apache web server because of the wealth of software tools and GUI-building tools it brings to the table.

When a link is clicked, I want the sound to come out of one of the audio ports on the Apache HTTPD server itself. We're currently sending character strings out a COM port on the server when a link is clicked, so I assume it's an extension of that, but using files for output and different kinds of ports.

-- NewtownGuy
 
Wow, that is interesting. The last time I messed with those things we were using BASIC or Relay Ladder Logic. How did you get your machines to use a web browser and click on links? I know we're getting off topic but why is it easier to use apache than a shell script that can access ports directly? But to get back to your question, I'm not sure that can be done. Very little stuff like that is ever done on the server side. There are ways you can send streaming audio (or video for that matter) to the users browser where his browser's configuration determines how it is handled. This is generally handled with plugins. You may have to do something like you are doing already and create some kind of flag file that a script can access and have the script access the port.I sure would like to hear more about how you are geting this to work so far though.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top