Hi,
I’ve managed to connect Rhasspy to my own home assistant server.
I’ve setup an automation on Hass to deal with the GetTime intent.
While I’m trying the “speak recognition”/GetTime I can see the intent leave to hass, I can see hass proceeding to the automation and posting the sessionEnd to MQTT hermes/dialogueManager/endSession with a text “OK” but I can’t hear it on Rhasspy.
NB : when I try to speak a text on Rhasspy It’s OK so it’s not a matter of sound device.
Here are some logs I can get
RHASSPY UI LOGS
[DEBUG:2024-01-09 13:56:21,695] rhasspyserver_hermes: Sent 377 char(s) to websocket
[DEBUG:2024-01-09 13:56:21,684] rhasspyserver_hermes: Handling NluIntent (topic=hermes/intent/GetTime, id=c778ddce-adbd-432d-acbd-d0137c3733d0)
[DEBUG:2024-01-09 13:56:21,682] rhasspyserver_hermes: <- NluIntent(input='quelle heure est-il', intent=Intent(intent_name='GetTime', confidence_score=1.0), site_id='BASE', id='60227f67-3408-45b6-b54e-edcc83d5edcf', slots=[], session_id='60227f67-3408-45b6-b54e-edcc83d5edcf', custom_data=None, asr_tokens=[[AsrToken(value='quelle', confidence=1.0, range_start=0, range_end=6, time=None), AsrToken(value='heure', confidence=1.0, range_start=7, range_end=12, time=None), AsrToken(value='est-il', confidence=1.0, range_start=13, range_end=19, time=None)]], asr_confidence=None, raw_input='quelle heure est-il', wakeword_id=None, lang=None)
[DEBUG:2024-01-09 13:56:21,560] rhasspyserver_hermes: Publishing 272 bytes(s) to hermes/nlu/query
[DEBUG:2024-01-09 13:56:21,559] rhasspyserver_hermes: -> NluQuery(input='quelle heure est-il', site_id='BASE', id='60227f67-3408-45b6-b54e-edcc83d5edcf', intent_filter=None, session_id='60227f67-3408-45b6-b54e-edcc83d5edcf', wakeword_id=None, lang=None, custom_data=None, asr_confidence=None, custom_entities=None)
HASS Automation traces
Executed: January 9, 2024 at 1:56:22 PM
Result:
params:
domain: mqtt
service: publish
service_data:
topic: hermes/dialogueManager/endSession
payload_template:
sessionId: 60227f67-3408-45b6-b54e-edcc83d5edcf
text: ok
target: {}
running_script: false
HASS MQTT (mosquito) Listen
Message 2 received on hermes/dialogueManager/endSession at 1:56 PM:
{
"sessionId": "60227f67-3408-45b6-b54e-edcc83d5edcf",
"text": "ok"
}
RHASSPY docker logs
[DEBUG:2024-01-09 13:56:21,559] rhasspyserver_hermes: -> NluQuery(input='quelle heure est-il', site_id='BASE', id='60227f67-3408-45b6-b54e-edcc83d5edcf', intent_filter=None, session_id='60227f67-3408-45b6-b54e-edcc83d5edcf', wakeword_id=None, lang=None, custom_data=None, asr_confidence=None, custom_entities=None)
[DEBUG:2024-01-09 13:56:21,560] rhasspyserver_hermes: Publishing 272 bytes(s) to hermes/nlu/query
[DEBUG:2024-01-09 13:56:21,581] rhasspynlu_hermes: <- NluQuery(input='quelle heure est-il', site_id='BASE', id='60227f67-3408-45b6-b54e-edcc83d5edcf', intent_filter=None, session_id='60227f67-3408-45b6-b54e-edcc83d5edcf', wakeword_id=None, lang=None, custom_data=None, asr_confidence=None, custom_entities=None)
[DEBUG:2024-01-09 13:56:21,591] rhasspynlu_hermes: -> NluIntentParsed(input='quelle heure est-il', intent=Intent(intent_name='GetTime', confidence_score=1.0), site_id='BASE', id='60227f67-3408-45b6-b54e-edcc83d5edcf', slots=[], session_id='60227f67-3408-45b6-b54e-edcc83d5edcf')
[DEBUG:2024-01-09 13:56:21,592] rhasspynlu_hermes: Publishing 223 bytes(s) to hermes/nlu/intentParsed
[DEBUG:2024-01-09 13:56:21,608] rhasspynlu_hermes: -> NluIntent(input='quelle heure est-il', intent=Intent(intent_name='GetTime', confidence_score=1.0), site_id='BASE', id='60227f67-3408-45b6-b54e-edcc83d5edcf', slots=[], session_id='60227f67-3408-45b6-b54e-edcc83d5edcf', custom_data=None, asr_tokens=[[AsrToken(value='quelle', confidence=1.0, range_start=0, range_end=6, time=None), AsrToken(value='heure', confidence=1.0, range_start=7, range_end=12, time=None), AsrToken(value='est-il', confidence=1.0, range_start=13, range_end=19, time=None)]], asr_confidence=None, raw_input='quelle heure est-il', wakeword_id=None, lang=None)
[DEBUG:2024-01-09 13:56:21,609] rhasspynlu_hermes: Publishing 612 bytes(s) to hermes/intent/GetTime
[DEBUG:2024-01-09 13:56:21,676] rhasspydialogue_hermes: <- NluIntent(input='quelle heure est-il', intent=Intent(intent_name='GetTime', confidence_score=1.0), site_id='BASE', id='60227f67-3408-45b6-b54e-edcc83d5edcf', slots=[], session_id='60227f67-3408-45b6-b54e-edcc83d5edcf', custom_data=None, asr_tokens=[[AsrToken(value='quelle', confidence=1.0, range_start=0, range_end=6, time=None), AsrToken(value='heure', confidence=1.0, range_start=7, range_end=12, time=None), AsrToken(value='est-il', confidence=1.0, range_start=13, range_end=19, time=None)]], asr_confidence=None, raw_input='quelle heure est-il', wakeword_id=None, lang=None)
[WARNING:2024-01-09 13:56:21,678] rhasspydialogue_hermes: No session for id 60227f67-3408-45b6-b54e-edcc83d5edcf. Dropping recognition.
[DEBUG:2024-01-09 13:56:21,682] rhasspyserver_hermes: <- NluIntent(input='quelle heure est-il', intent=Intent(intent_name='GetTime', confidence_score=1.0), site_id='BASE', id='60227f67-3408-45b6-b54e-edcc83d5edcf', slots=[], session_id='60227f67-3408-45b6-b54e-edcc83d5edcf', custom_data=None, asr_tokens=[[AsrToken(value='quelle', confidence=1.0, range_start=0, range_end=6, time=None), AsrToken(value='heure', confidence=1.0, range_start=7, range_end=12, time=None), AsrToken(value='est-il', confidence=1.0, range_start=13, range_end=19, time=None)]], asr_confidence=None, raw_input='quelle heure est-il', wakeword_id=None, lang=None)
[DEBUG:2024-01-09 13:56:21,684] rhasspyserver_hermes: Handling NluIntent (topic=hermes/intent/GetTime, id=c778ddce-adbd-432d-acbd-d0137c3733d0)
[DEBUG:2024-01-09 13:56:21,692] rhasspyhomeassistant_hermes: <- NluIntent(input='quelle heure est-il', intent=Intent(intent_name='GetTime', confidence_score=1.0), site_id='BASE', id='60227f67-3408-45b6-b54e-edcc83d5edcf', slots=[], session_id='60227f67-3408-45b6-b54e-edcc83d5edcf', custom_data=None, asr_tokens=[[AsrToken(value='quelle', confidence=1.0, range_start=0, range_end=6, time=None), AsrToken(value='heure', confidence=1.0, range_start=7, range_end=12, time=None), AsrToken(value='est-il', confidence=1.0, range_start=13, range_end=19, time=None)]], asr_confidence=None, raw_input='quelle heure est-il', wakeword_id=None, lang=None)
[DEBUG:2024-01-09 13:56:21,695] rhasspyserver_hermes: Sent 377 char(s) to websocket
[DEBUG:2024-01-09 13:56:21,708] rhasspyhomeassistant_hermes: http://IP:8123/api/events/rhasspy_GetTime
[DEBUG:2024-01-09 13:56:22,470] rhasspydialogue_hermes: <- DialogueEndSession(session_id='60227f67-3408-45b6-b54e-edcc83d5edcf', text='ok', custom_data=None)
[WARNING:2024-01-09 13:56:22,472] rhasspydialogue_hermes: No session for id 60227f67-3408-45b6-b54e-edcc83d5edcf. Cannot end.
The end line seems to explain, but I cannot get why it says there is no session id.