-
Notifications
You must be signed in to change notification settings - Fork 228
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
How to use narrowband? #1447
Comments
I couldn't reproduce your issue with the following snippet: from lhotse import *
cuts = CutSet.from_file("libri-train-5.jsonl.gz")
cuts = CutSet.mux(
cuts,
cuts.perturb_speed(0.9),
cuts.perturb_speed(1.1),
)
cuts = CutSet.mux(
cuts,
cuts.narrowband(codec="mulaw", restore_orig_sr=True),
)
for c in cuts:
c.load_audio() Can you update lhotse to the latest version and try again, or share more details? |
lhotse version use 1.29.0 set Maybe nemo training issue ? the detail msg:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Traceback (most recent call last):
File "/usr/local/lib/python3.10/dist-packages/lhotse/cut/mixed.py", line 285, in getattr) = self._assert_one_data_cut_with_attr_and_return_it_with_track_index(name)
File "/usr/local/lib/python3.10/dist-packages/lhotse/cut/mixed.py", line 378, in
_assert_one_data_cut_with_attr_and_return_it_with_track_index assert len(non_padding_cuts_with_custom_attr) == 1, ( AssertionError: This MixedCut has 0 non-padding cuts with a custom attribute 'narrowband'. We currently don't support mixing custom attributes. Consider dropping the attribute on all but one of DataCuts. Problematic cut:
The text was updated successfully, but these errors were encountered: