anthumchris / fetch-stream-audio

Low Latency web audio playback examples for decoding audio streams in chunks with Fetch & Streams APIs
https://fetch-stream-audio.anthum.com
MIT License
378 stars 23 forks source link

#4 Add Opus File Decoding #10

Closed anthumchris closed 4 years ago

anthumchris commented 4 years ago

Adds an example for using WebAssembly to decode an Opus file and play with the Web Audio API. Both the WAV and Opus examples can be compared. Connection speeds are currently limited at 2mbps. While the Opus file is smaller, the playback start latency ("playback waiting") is slightly longer because the Opus headers must be read first. Despite this, Opus would have huge advantages at slower speeds (tested with 2G speeds like 72kbps)

closes #4, closes #9