Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
songbing1990 opened this issue Dec 20, 2019 · 2 comments · Fixed by #10
Closed

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

songbing1990 opened this issue Dec 20, 2019 · 2 comments · Fixed by #10

Comments

@songbing1990
Copy link

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

@songbing1990 songbing1990 changed the title Convert the same .wav,But the raw buffer information is inconsistent。 Convert the same .wav,But the decode buffer information is inconsistent。 Dec 20, 2019
@anthumchris
Copy link
Owner

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.

@songbing1990
Copy link
Author

songbing1990 commented Dec 20, 2019

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants