anthumchris / fetch-stream-audio

Low Latency web audio playback examples for decoding audio streams in chunks with Fetch & Streams APIs

Home Page:https://fetch-stream-audio.anthum.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Convert the same .wav,But the decode buffer information is inconsistent。

songbing1990 opened this issue · comments

Hi~
I'm try process ourself .wav audio with the repo, But the decode buffer is not the same as ours。I suspect the audio quality effect the result, but I'm not sure。And thank you for giving us different solutions about decode the large .wav audio。

ours ways: use AudioContext.decodeAudioData()

Our result::
4FDD76CA-7D28-4269-9AFC-FD62272AA0B7

The repo results:
E56A150D-F065-491d-89B7-97115E09E35B

Test .wav audio:
MRYJ-20190102-160__mdt_1.zip

Hi there. I can't speak on behalf of the third-party Wav decoder because I didn't write it. This repo only tested a specific 48,000hz file to exemplify Web Audio API usage. I should have #4 completed before the year ends, and you're welcome to try using Opus files instead of Wav once that completes.

Copy that and Thank you. I'm looking forward to it. will keep watching the repo and look for other solutions.

Our ways:
https://developer.mozilla.org/zh-CN/docs/Web/API/AudioContext/decodeAudioData
https://developer.mozilla.org/en-US/docs/Web/API/BaseAudioContext/decodeAudioData