in reply to Re: Play audio on a web page
in thread Play audio on a web page

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!

Replies are listed 'Best First'.
Re^3: Play audio on a web page
by marto (Cardinal) on Nov 30, 2010 at 19:54 UTC

    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!
        quite correct...client (browser) side technologies. the specification doesn't mention anything that needs to be done on server side, which is where perl runs. the perl can present CGI/html/etc to the browser via a web server..but it still runs server side, and doesn't interact directly with browser. javascript/html/flash etc work on the browser/client side.
        the hardest line to type correctly is: stty erase ^H