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

InvalidPathExtension from SequentialJsonlWriter #1444

Open
MeeElves opened this issue Jan 9, 2025 · 0 comments
Open

InvalidPathExtension from SequentialJsonlWriter #1444

MeeElves opened this issue Jan 9, 2025 · 0 comments

Comments

@MeeElves
Copy link

MeeElves commented Jan 9, 2025

Follow command in lhotse doc to importing Kaldi data and create a CutSet.
But it failed.

$ lhotse cut simple \

-r ./recordings.jsonl.gz
-f ./features.jsonl.gz
-s ./supervisions.jsonl.gz
./uyghur_train.json1.gz
Traceback (most recent call last):
File "/home/studyself/miniconda3/envs/kaldiNew/bin/lhotse", line 8, in
sys.exit(cli())
File "/home/studyself/miniconda3/envs/kaldiNew/lib/python3.10/site-packages/click/core.py", line 1161, in call
return self.main(*args, **kwargs)
File "/home/studyself/miniconda3/envs/kaldiNew/lib/python3.10/site-packages/click/core.py", line 1082, in main
rv = self.invoke(ctx)
File "/home/studyself/miniconda3/envs/kaldiNew/lib/python3.10/site-packages/click/core.py", line 1697, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/home/studyself/miniconda3/envs/kaldiNew/lib/python3.10/site-packages/click/core.py", line 1697, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/home/studyself/miniconda3/envs/kaldiNew/lib/python3.10/site-packages/click/core.py", line 1443, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/home/studyself/miniconda3/envs/kaldiNew/lib/python3.10/site-packages/click/core.py", line 788, in invoke
return __callback(*args, **kwargs)
File "/home/studyself/miniconda3/envs/kaldiNew/lib/python3.10/site-packages/lhotse/bin/modes/cut.py", line 74, in simple
CutSet.from_manifests(
File "/home/studyself/miniconda3/envs/kaldiNew/lib/python3.10/site-packages/lhotse/cut/set.py", line 355, in from_manifests
return create_cut_set_lazy(
File "/home/studyself/miniconda3/envs/kaldiNew/lib/python3.10/site-packages/lhotse/cut/set.py", line 3277, in create_cut_set_lazy
with CutSet.open_writer(output_path) as writer:
File "/home/studyself/miniconda3/envs/kaldiNew/lib/python3.10/site-packages/lhotse/serialization.py", line 358, in open_writer
return SequentialJsonlWriter(path, overwrite=overwrite)
File "/home/studyself/miniconda3/envs/kaldiNew/lib/python3.10/site-packages/lhotse/serialization.py", line 185, in init
raise InvalidPathExtension(
lhotse.serialization.InvalidPathExtension: SequentialJsonlWriter supports only JSONL format (one JSON item per line), but path='./uyghur_train.json1.gz'.

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