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

[tools] normalize the audio before resample #1056

Merged
merged 1 commit into from
Apr 25, 2022

Conversation

Mashiro009
Copy link
Contributor

According to pytorchaudio issues, resample can't process the int audio.
And waveforms, sample_rate = sox.load(wav, normalize=False), so the type of waveforms from wav is int16.
Therefore normalize the audio before resample by dividing (1<<15).

@robin1001 robin1001 merged commit 07e64c8 into wenet-e2e:main Apr 25, 2022
@robin1001
Copy link
Collaborator

Good Catch!

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 this pull request may close these issues.

2 participants