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

Support export_to_kaldi on resampled recordings #1162

Merged
merged 7 commits into from
Sep 27, 2023

Conversation

sih4sing5hong5
Copy link
Contributor

Situation

When the 8kHz wav recording resampled to 16kHz was exported to kaldi_dir, the wav.scp should contain ffmpeg -ar 16000.

Expectation

There is parameter about 16kHz in wav.scp

Result

Only the file path.

@sih4sing5hong5 sih4sing5hong5 changed the title WIP: Fix the bug about export_to_kaldi after wav resample Fixed the bug about export_to_kaldi after wav resample Sep 26, 2023
pzelasko
pzelasko previously approved these changes Sep 26, 2023
Copy link
Collaborator

@pzelasko pzelasko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@pzelasko pzelasko changed the title Fixed the bug about export_to_kaldi after wav resample Support export_to_kaldi on resampled recordings Sep 26, 2023
@pzelasko pzelasko enabled auto-merge (squash) September 26, 2023 12:27
@pzelasko pzelasko added this to the v1.17 milestone Sep 26, 2023
@pzelasko
Copy link
Collaborator

Can you fix the checks?

@sih4sing5hong5
Copy link
Contributor Author

Can you fix the checks?

OK

auto-merge was automatically disabled September 26, 2023 12:34

Head branch was pushed to by a user without write access

@sih4sing5hong5
Copy link
Contributor Author

Can you fix the checks?

I fixed the isort and black :)

@pzelasko pzelasko enabled auto-merge (squash) September 27, 2023 01:04
@pzelasko pzelasko merged commit 5c617ee into lhotse-speech:master Sep 27, 2023
10 checks passed
flyingleafe pushed a commit to flyingleafe/lhotse that referenced this pull request Oct 11, 2023
* Add the test.

* fixed the test.

* Pass the transforms into function because the resample function will modify the transforms.

* Modified other tests.

* black

* isort

---------

Co-authored-by: Piotr Żelasko <petezor@gmail.com>
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.

None yet

2 participants