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

Sampling rate conversion #1229

Open
bsshruthi22 opened this issue Dec 6, 2023 · 3 comments
Open

Sampling rate conversion #1229

bsshruthi22 opened this issue Dec 6, 2023 · 3 comments

Comments

@bsshruthi22
Copy link

I have mixed wav files of sampling rates 8khz and 16khz. When I try to import kaldi files for creating manifests, for eg:
lhotse kaldi import data/train 8000 train_manifests ,I get errors due to different sample rates (for 16khz files). Is there any way I can use them without manually converting all 16khz to 8khz?
The pipe command in wav.scp to convert to 8khz doesnt work and throws error when creating manifests.
Please suggest.

@pzelasko
Copy link
Collaborator

pzelasko commented Dec 6, 2023

the best option is to split and import both types of files separately

@bsshruthi22
Copy link
Author

@pzelasko Thank you for the reply.I have prepared the manifests seperately and merged them.Is it possible to train with 2 different sampling frequencies together (8khz and 16khz)?

@pzelasko
Copy link
Collaborator

Yes. As long as Lhotse knows the actual sampling rate it will work. Typically you’d want to resample on the fly or before feature extraction with cuts.resample(16000).

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

2 participants