Is there a native method for using emitter inside a skill (as the name of the code flavor tab ‘Generating Message from MycroftSkill’ implies) or do I need to use a 3rd party package such as this: GitHub - JarbasAl/local_listener: WIP - local pockesphinx listener for mycroft
According to this the Docs are all old on the use of ‘emitter’ and should be changed to ‘bus’. I did this and is no longer throwing an error on ‘emitter’
So for the AudioService I believe you want to be passing it a reference to the messagebus eg:
self.audio_service = AudioService(self.bus). It then knows where to send the appropriate messages.
The emitter is what sends messages to the bus. However it’s format has changed over the years as Mycroft evolved and became more stable. So instead of self.emitter.emit now we have something like:
self.bus.emit(Message("speak", {"utterance": "words to be spoken", "lang": "en-us"}))
However if you’re wr…
@gez-mycroft