websockets-streaming-audio icon indicating copy to clipboard operation
websockets-streaming-audio copied to clipboard

Stream live file

Open zzph opened this issue 4 years ago • 3 comments

Hi there,

Apologies if this is a basic question.

I'm keen to stream a file (.wav or whatever format) live (as it is being recorded/made).

Can your library support a file that is being "created" on the fly? If so, how is this done? Thanks

Thanks

zzph avatar Oct 12 '21 12:10 zzph

this repo is more of a specific application which streams a .wav file from server side to the browser where it then renders ( plays ) the received streamed audio ... although this code could be used as a foundation from which you could stream audio from X to Y yet in the current use case X is server and Y is browser

scottstensland avatar Oct 13 '21 14:10 scottstensland

Thanks for that.

I think I’m following

in your app, would it play the stream from the beginning of the audio or where the “sender” audio is upto?

Is the quality high enough for music?

zzph avatar Oct 13 '21 20:10 zzph

fully read all of the readme which appears at the top most page of this git repo page ... in there it refers to a live heroku link which has this server running this repo code so you can judge for yourself ... once there tap on button "stream 13"

I wrote this repo to teach myself javascript and websockets and web workers and web audio api and its architected as an application not a library per se so to use as a library would require slimming down and loosening up the couplings between those subsystems but its as simple as possible direct use of that tech stack so it should be easy pickens to pillage at will

currently it always starts at the beginning of the chosen stream not mid stream however with some mods the server side could service arbitrary client connections all streaming same stream

scottstensland avatar Oct 13 '21 20:10 scottstensland