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

wav length #6

Open
liu-x-p opened this issue Jan 8, 2022 · 0 comments
Open

wav length #6

liu-x-p opened this issue Jan 8, 2022 · 0 comments

Comments

@liu-x-p
Copy link

liu-x-p commented Jan 8, 2022

Hi, I'm trying to use this work to predict the segments of audios. Then feature of this work is exacted by conv encoder, and the parameter wav_len is calculated with conv layers outputs. And the wav_len equals to the number of frames.
When I used pretrained model to get segments with melscale, I found the number of frames were different between melscale and output of encoder. For example, the length of the audio is 258560, and length of the conv layers output is 1613, which is 1617 of melscale.
How to avoid this difference?

I use torchaudio to calculate melscale, and set parameters like this
win: 30ms
hop: 10ms
n_mel: 80

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

No branches or pull requests

1 participant