Skip to content

Commit

Permalink
Fix speak message to reply instead of forward for expected sour…
Browse files Browse the repository at this point in the history
…ce/destination context

Add context to `speak` created messages to ensure expected context
  • Loading branch information
NeonDaniel committed Nov 15, 2023
1 parent ba7f0ee commit dce793b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions ovos_core/intent_services/commonqa_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,8 @@ def speak(self, utterance, message=None):
'meta': {"skill": selected_skill},
'lang': lang}

m = message.forward("speak", data) if message \
else Message("speak", data)
m = message.reply("speak", data) if message \
else Message("speak", data, {"source": "skills",
"destination": ["audio"]})
m.context["skill_id"] = selected_skill
self.bus.emit(m)

0 comments on commit dce793b

Please sign in to comment.