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

audio file length #33

Open
fabianbosshard opened this issue Apr 23, 2024 · 4 comments
Open

audio file length #33

fabianbosshard opened this issue Apr 23, 2024 · 4 comments
Labels
question Further information is requested

Comments

@fabianbosshard
Copy link

Hi Yuan

We have another question: What was the length of the audio files you used? In the paper it is written thatthey are 10 seconds but with 10 seconds the resulting spectrograms (from torchaudio.compliance.kaldi.fbank) are 998 frames (with the frame_shift set to 10ms and the frame_length set to 25ms) and thus the remaining 26 frames are being zero padded by the dataloader (if the target_length is set to 1024).

image

Best Regards,
Fabian

@YuanGongND
Copy link
Owner

They are 10 seconds (Audioset), a small padding is expected. 1024 is just an integral powers of 2, which can be easier to be split into 16*16 patches (suppose no overlap). A small padding won't impact the performance.

-Yuan

@YuanGongND YuanGongND added the question Further information is requested label Apr 23, 2024
@fabianbosshard
Copy link
Author

Okay, thanks for your quick reply.

Since we use the frame-based model (we want to finetune it for Speaker Verification), I think we set the target_length to 998. But maybe we use 390 masked patches instead of 400 (to leave the ratio of masked/total numer of frames close to the original setup from your paper).

Best Regards,
Fabian

@YuanGongND
Copy link
Owner

YuanGongND commented Apr 23, 2024

yes, that sounds reasonable. But again, I would expect this will only lead to minor difference.

There might be some hard coded 1024 you need to change in this codebase.

@indraneelrp
Copy link

what happens when we input a longer audio file (like 1 min) for inference? it did give an output. Has it analysed the whole clip or only a 10 second portion of the clip?

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

No branches or pull requests

3 participants