-
Notifications
You must be signed in to change notification settings - Fork 73
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
API changes #254
Comments
Hi @cjbassi, Sorry for the late response. Regarding feature one, adding a Regarding the As for the policy on API changes generally, I try to keep things backwards compatible with older versions of dragonfly unless the change is to something internal that isn't used directly by users. |
I will take a look at the Kaldi backend |
If we are going to do this in a backwards compatible way, we probably want to keep Question: Is For the grammar loading, it sounds like I might not be doing things correctly, so I'll have to do some more research and get back to you about that. Thanks for the pointers. |
@cjbassi How is the proposed For |
Oh I must have missed Yes, I'm calling |
@cjbassi https://github.com/dictation-toolbox/dragonfly/blob/master/dragonfly/examples/kaldi_module_loader_plus.py should be a good example of how to do the basic stuff, including a message closely before start of recognition. I will take a look at the disconnect issue. |
What's the policy on API changes? I've been having a bit of trouble implementing some features due to some issues with the dragonfly API. The two features I'm trying to implement are:
Run a callback when the engine is done setting up and ready to listen in the
do_recognition
method. For this, I think it would be good to split this function up and add aprepare_recognition
method that is supposed to be called beforedo_recognition
.I'm trying to reinstantiate the engine with different settings and a different grammar. At least with the Kaldi engine, once you call disconnect, calling do_recognition doesn't work anymore. Also, get_engine will not create a new engine, it just returns the old one. Is it possible to update the engine settings once you've already created it?
Another issue I've noticed is having to call load() on both the grammar and engine can be quite confusing and problematic depending on the order you call them in. I think it would be much nicer if you didn't have to call load on either of them, and you instead passed the grammar directly to the engine in the prepare_recognition method.
Thanks!
The text was updated successfully, but these errors were encountered: