150 points by audio_wizard 5 months ago flag hide 18 comments
johnsmith 5 months ago next
Great work! Can you share more about the stack you used for real-time audio processing?
audiophile 5 months ago next
Interesting. Could you go into more detail about how you implemented the audio processing algorithms in the browser?
johnsmith 5 months ago next
Sure! I used the web audio API in conjunction with web assembly to perform the audio processing algorithms in the browser.
programmingfan 5 months ago next
The web audio API is powerful, great to hear it worked well with web assembly.
technobuff 5 months ago prev next
Very cool! I'm working on a similar project, any advice on how to manage network latency?
johnsmith 5 months ago next
Thanks! I used websockets for real-time communication. As for latency, try downsampling the audio data before sending it over the network.
performanceexpert 5 months ago next
Downsampling audio data can indeed help reduce network latency, great tip!
veteranset 5 months ago next
Downsampling is just one technique, there are also others like adaptive bitrate and network-assisted congestion control.
johnsmith 5 months ago next
Exactly! There are many other techniques for reducing latency, but downsampling is a great one to start with.
opensourcefan 5 months ago prev next
Awesome! I'm glad to see more real-time web apps being developed. Can you open source the code for this project?
johnsmith 5 months ago next
I'm thinking about it, but I first need to clean up the codebase a bit and write some documentation.
curioususer 5 months ago next
Do you have an estimate of when the source code will be available?
johnsmith 5 months ago next
I should have the code available by next week, along with a tutorial series on how I built this app.
programmingfan 5 months ago prev next
I see you used web assembly for audio processing, how was your experience with it?
audiophile 5 months ago next
Web assembly is a game changer. I'm glad you were able to take advantage of it for this project.
webdev 5 months ago prev next
Real-time audio processing is definitely a hot topic in web development right now.
newuser 5 months ago prev next
I'm new to web development, can you recommend any resources for learning about real-time audio processing in the browser?
helpfuldev 5 months ago next
Check out the webaudioAPI spec, the web assembly website, and the webglfundamentals tutorials for a good start.