Skip to content

[Feature Request] Action that provides the active engine #178

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

Closed
knausj85 opened this issue Dec 18, 2020 · 3 comments
Closed

[Feature Request] Action that provides the active engine #178

knausj85 opened this issue Dec 18, 2020 · 3 comments

Comments

@knausj85
Copy link

knausj85 commented Dec 18, 2020

There's a few places where an action or another mechanism to get the active engine (wav2letter, dragon, etc) would be potentially useful to better support multiple engines in user scripts.

e.g.,talonhub/community#300
The "welcome back" command is intended to do a few things, including moving into the "Talon mode" equivalent. The "correct" behavior varies with the engine.

    def talon_mode():
        """For windows and Mac, enables Talon commands and enables command mode or equivalent."""

        actions.speech.enable()
        if app.platform == "mac":
            actions.user.engine_sleep()
        elif app.platform == "windows":
            actions.user.engine_wake()

            # note: this may not do anything for all versions of Dragon. Requires Pro.
            actions.user.engine_mimic("switch to command mode")
@lunixbochs
Copy link

Two ways today:

speech_system.engine.name
scope.get("speech.engine")

@knausj85
Copy link
Author

Thanks -scope.get("speech.engine") returns None on v0.1.2-159 FWIW, but speech_system.engine.name works well for this.

@lunixbochs
Copy link

I don't think we need a dedicated action for this yet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants