Is there any more documentation of the HA conversation integration other than the official documentation? I am hoping to get access to the raw sentence that get interpreted within Home Assistant.
Some background:
With the “2023.1: Happy New Year of the voice!” release I was inspired to spin up a Rhasspy instance. Got it working and seems to be working mostly fine for what Rhasspy is intended.
Beyond just controlling lights and getting the time/weather and stuff I wanted to then set it up to send spoken open ended questions to a remote API with the response to be send to my local speaker. So: STT → remote API → TTS
I have all of that working unfortunately Rhasspy drops all word it doesn’t recognize from its trained sentences before sending it to Home Assistant (its more complicated than that, but thats the jist) when interpreting voice commands.
So if I type in to the Rhasspy console “Answer this How many moons does saturn have” I will hear “Saturn has at least 82 moons.” from my speaker, however if I speak that same phrase to Rhasspy via a microphone the Home Assistant intent only receives “Answer this”, there is no way to do/send wildcards in Rhasspy.
The sentence/intent (uses “answer this” as intent trigger) and removes it before sending it to the remote API:
askOpenAiQuestion:
speech:
text: Let me check on that
action:
- service: input_text.set_value
data_template:
entity_id: input_text.last_openai_question
value: "{{ _intent.rawInput | replace(\"answer this\",\"\") }}"
I started looking for another solution to send STT questions to the remote API and found the built in HA Conversation Integration. With it I can ask the question into my phone (HA companion app) “How many moons does saturn have” and it transcribes it correctly and prints “How many moons does saturn have” in the conversation dialog, so I know it gets me at least part of the way there. In hopes to solve this, I have a few questions I hope someone can help with.
Does that STT data get written to a sensor somewhere that HA can access?
Does HA conversations integration support wildcard words/phrases?
Is there more documentation on the conversation integration that I missed when looking?
Is there a way to get the conversation integration to access the physical microphone attached to the HA system the same way Rhasspy does (maybe with an alternative wake word)
Has anyone got any other SST system working with HA when sending words it wasnt specifically trained on?
Thanks for reading.