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

[FR] Sentence Trigger #672

Open
contagon opened this issue Dec 28, 2024 · 1 comment
Open

[FR] Sentence Trigger #672

contagon opened this issue Dec 28, 2024 · 1 comment

Comments

@contagon
Copy link
Contributor

contagon commented Dec 28, 2024

For all the new voice assistant stuff being developed currently, it'd be awesome if sentence triggers made their way to pyscript. Something like this would be awesome,

@sentence_trigger("activate dance mode")
def dance_mode():
    dance_lights.turn_on()
    return "dance like no one is watching!"

where the return value is the "conversation response" and spoken by the triggered voice assistant.

I had planned to give this a try once I did the easier webhook triggers (in #592), but handling the return response ended up not as straightforward as I had expected and I frankly haven't found the time. Happy to collaborate if someone wants to tackle this or do it together. I think we could track any progress that happens here if @craigbarratt is open to a PR :)

Note, this is also similar to the request in discussion #591.

@ALERTua
Copy link
Contributor

ALERTua commented Dec 28, 2024

@craigbarratt this one is for you :)

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