Skip to content

lhotse integration#114

Open
popcornell wants to merge 4 commits into
pyannote:developfrom
popcornell:lhotse
Open

lhotse integration#114
popcornell wants to merge 4 commits into
pyannote:developfrom
popcornell:lhotse

Conversation

@popcornell
Copy link
Copy Markdown

@popcornell popcornell commented Dec 4, 2025

@hbredin
Added lhotse integration in pyannote-database.
I also added tests.
You can run tests via pytest tests/test_lhotse.py
There are also tests based on AMI which however will require AMI lhotse manifests:

These can be run with python examples/lhotse_usage.py and python tests/test_lhotse_ami_integration.py

Comment thread examples/lhotse_usage.py
"num_speakers": lambda file: len(set(
s.speaker for s in file["supervisions"] if s.speaker is not None
)),
"audio": lambda file: file["recording"].sources[0].audio,
Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

right now audio is defined in preprocessor only.
I am still using lhotse recordings which could allow for a bunch of cool things in preprocessors (e.g. loading even multi channel data).

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.

2 participants