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

Injecting custom online features with a nnet3 model using online2 #299

Open
asumagic opened this issue Mar 25, 2022 · 0 comments
Open

Injecting custom online features with a nnet3 model using online2 #299

asumagic opened this issue Mar 25, 2022 · 0 comments

Comments

@asumagic
Copy link

I have a nnet3 model which uses custom features along side iVectors. It works fine for offline ASR using Kaldi.

Now, I'm trying to get this model working for online decoding using Pykaldi. However, I am a bit stuck as to how this should be done.

In my usecase, it does not seem like OnlineNnetFeaturePipeline would be usable as it is hardcoded in Kaldi to only support MFCCs, PLPs and filterbanks.
Even if it were, I cannot really think of a way the Pykaldi kaldi.feat classes could be leveraged to inject custom online features from Python code (OnlineMatrixFeature seems like the closest match, but it seems to be only useful in specific usecases where some info is known ahead of decoding). Currently, it doesn't seem possible to define custom OnlineFeatureInterfaces from Python code.

So, I do have a few leads, but I don't really know how to glue everything together, and whether I'm missing on something obvious. As it does seem like I may have to modify Pykaldi in the end, I could try to contribute towards a PR if there is upstream interest towards this issue - hence why I'd like to know what a sane approach would be here.

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