WindyJMusic has asked for the wisdom of the Perl Monks concerning the following question:

Hi all, first-time poster

Looking for some advice on modules I can use to collect audio from a browser window and save it to a file on my server, perhaps with a maximum time limit. I'm not picky about audio formats, but it does need to work on any browser. Suggestions?

Thanks,
WindyJ

Replies are listed 'Best First'.
Re: Record Audio In Browser to File
by marto (Cardinal) on Jun 10, 2022 at 13:54 UTC

    Out of interest, what sort of audio are you talking about, voice/mic input? The reason I ask is that cross browser, low latency audio workflows I think may cause issues, especially if it has to work cross browser on 'consumer' hardware. Regardless, that's going to be a client side thing, JavaScript(one example)/Web Audio, sending the resultant audio to a perl backend, for which I'd suggest a Mojolicious::Lite/Mojolicious framework, depending on your needs.

      I'm definitely only looking for voice/mic input. I have students who play musical instruments I would like to record (amongst other things) and I was hoping to do it in a browser so that I don't have to worry about file management (it's the bane of my existence).

      I'll read what you've suggested here, may come back with more questions.

Re: Record Audio In Browser to File
by Discipulus (Canon) on Jun 10, 2022 at 14:17 UTC
    Hello WindyJMusic and welcome to the monastery and to the wonderful world of perl

    read an mp3 stream and save tracks using icy-metaint (ICY protocol) is the closest thing it comes to me: it was a fun project to grab ICY streams from interner radios. It works with some radio, not all.

    Share your findings!

    L*

    There are no rules, there are no thumbs..
    Reinvent the wheel, then learn The Wheel; may be one day you reinvent one of THE WHEELS.