Printing out utterances that Mycroft heard

Hi all,

I have Mycroft installed (from github) on my Rasperry Pi running Raspian (not Picroft), and I am trying to develop a skill that interacts with a Python program that I have written. I want to print out the utterance that the User said (after the wakeword). I have looked into mycroft-message-bus package, and followed the example (https://mycroft-ai.gitbook.io/docs/mycroft-technologies/mycroft-core/message-bus), but the utterance that is printed is what Mycroft says, not what Mycroft heard.

Iā€™m sure that there is a simple solution to this, but I have not found it yet. Any advice is greatly appreciated.

Thanks,
Edward

Sample code here. Look at the add event portion on lines 109 & 110 one event calls a function with user utterances and other cals a function in what Mycroft speaks.

https://github.com/pcwii/mesh-skill/blob/master/__init__.py

Thank you very much! This is exactly what I was looking for. In case this helps someone else, the following is a useful reference for mycroft events:

1 Like