Follow

does anyone know how to stream audio from linux to a web page? so far i have been able to pipe arecord to a tcp port on a nodejs server, but have trouble getting it to play in the client. any method is welcome, doesnt have to be nodejs

@johanv Either have JavaScript on the client (bad plan; the WebAudio API is horrible) or use something supported by the <audio> tag.

@wizzwizz4 thanks for pointing me in the right direction! i was able to get a wav file to stream thru tcp to the server and then to a normal audio tag. i should be able to get the mic to pipe in, and then experiment with ogg for compression.

Sign in to participate in the conversation
Fosstodon

Fosstodon is an English speaking Mastodon instance that is open to anyone who is interested in technology; particularly free & open source software.