Does lhotse support multiple features? #1397
-
I read the documentation and the codebase. I think a cut can only have one features. I was looking for something like this: cuts = load_manifest_lazy("path/to/manifest")
cut = cuts[0]
mfcc_features = cut.load_features(type="mfcc")
fbank_features = cut.load_features(type="kaldi-fbank")
Is there a way to work with multiple features? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
If this is not possible, I would like to work on a PR about this. Does this also make sense for many use cases? |
Beta Was this translation helpful? Give feedback.
-
Thanks. By following @pzelasko 's suggestion I managed to save custom features with hd5 writer. I end up writing GenericFeatures class to easily load and manipulate those features later on. |
Beta Was this translation helpful? Give feedback.
It's possible, but poorly documented as of yet. You want to check the
FeaturesWriter.store_array
used like this: