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

Home Assistant intent handling is expecting intent response in wrong format #45

Closed
DanielWe2 opened this issue May 28, 2020 · 1 comment

Comments

@DanielWe2
Copy link

When you use Home Assistant as intent handler and set it to send intents to Home Assistant it doesn't process possible text response.

The response is processed with:
tts_text = response_dict.get("speech", {}).get("text", "")

But an example response form Home Assistant looks like this:
{'card': {}, 'speech': {'plain': {'extra_data': None, 'speech': 'text to speak'}}}

So it will never get the text from the response.

Also see: https://developers.home-assistant.io/docs/intent_firing

@synesthesiam
Copy link
Contributor

Thanks! Fixed in rhasspy/rhasspy-homeassistant-hermes@112cbb5

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