AudioStreamer
AudioStreamer copied to clipboard
Audio Codecs
this is more a question than an issue. I'm trying to use websocket to sent the audio from html5 chrome to java. but i have some doubts witch audio codec chrome use and if it's possible to change?
When I receive the binary data in java websocket I had to do some kind of transformation?
The decode happens on client side using Web Audio API (decodeAudioData()
). The payload WebSocket will deliver is raw audio data (PCM) so if you want to manipulate it, treat it as is. Decode is not needed.
I've been wanting to compress audio data into some kind of codec for bandwidth sake when on wire but that will be a trade off with JS speed (haven't tried yet though).