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

Multiple feature extractors in a single Cut #1350

Open
njellinas opened this issue Jun 7, 2024 · 1 comment
Open

Multiple feature extractors in a single Cut #1350

njellinas opened this issue Jun 7, 2024 · 1 comment

Comments

@njellinas
Copy link

Is it possible to have multiple feature extractors for a single Cut?
e.g. if you want mel spectrograms, F0, energy, etc. as separate features in a model, can you implement each one separately and call compute_features and get them as separate arrays/tensors?

@pzelasko
Copy link
Collaborator

pzelasko commented Jun 7, 2024

Yes, one example is given towards the end of this tutorial https://github.com/lhotse-speech/lhotse/blob/master/examples/04-lhotse-shar.ipynb

if you don’t want to go into tar archives you can use any of the feature writers in a pattern like this: cut.my_feature = writer.store_array(…)

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