AudioStreamer icon indicating copy to clipboard operation
AudioStreamer copied to clipboard

Audio Codecs

Open rpgomes opened this issue 10 years ago • 1 comments

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?

rpgomes avatar Mar 18 '14 19:03 rpgomes

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).

agektmr avatar Mar 19 '14 01:03 agektmr