in reply to Play audio on a web page

What format of audio? I'm guessing not midi? You could help us to help you by being specific. See How do I post a question effectively?.

I'm sure your perl code generates HTML, are you generating HTML5? If not you'll need a plugin or player which has nothing to do with perl, unless you're interested in streaming audio. See jQuery Audio plugins, google search for more information, or post some perl specific questions for further info.

Replies are listed 'Best First'.
Re^2: Play audio on a web page
by Anonymous Monk on Nov 30, 2010 at 19:36 UTC

    In a little more detail, I want to have 5 buttons on the screen, one for English, French, Spanish, Greek and Latin. When I press the English button, the voice begins speaking in English. When I press the Greek button, the speaker will begin the next sentence, in the sequence, in Greek. And so on. The audio is currently in ogg format but I can convert it if necessary.

    I have programmed Perl/CGI web pages before, on a Linux server. This was mainly the presentation of weather stats for various time periods. I'm not sure yet how this website will be hosted.

    Flash isn't supported by certain platforms...

    What I'm basically looking for is info regarding how this might be solved. Thanks!

      Thanks for the update. I don't think that there is a catch all solution for your question, catering for every browser/plugin set. One approach would be to provide various solutions (it would be easier if you were using a templating system such as HTML::Template or Template::Toolkit) catering for a cross section of platforms/browsers and redirect to them based on browser/plugin detection.

        Javascript and Html 5 is yer only man!