project-alice-assistant / HermesLedControl

Provides an easy way to control your leds in an Hermes environment
GNU General Public License v3.0
83 stars 41 forks source link

Toggle LED On when WAV is played #103

Closed sadmin91 closed 3 years ago

sadmin91 commented 3 years ago

Is your feature request related to a problem? Please describe. No LED are turn on when I play a WAV file on my Rhasspy instance by calling play-wav endpoint API

Describe the solution you'd like Activate LEDs when a WAV file is played on my Rhasspy instance

Psychokiller1888 commented 3 years ago

Hi

What's the mqtt topic sent when playing a wav file?

sadmin91 commented 3 years ago

Hello, By reading the Rhasspy documentation (https://rhasspy.readthedocs.io/en/latest/reference/#audio-server), I think that the mqtt topic is hermes/audioServer/<siteId>/playBytes/<requestId>

Psychokiller1888 commented 3 years ago

No, playBytes is not connected to HLC, you should use the higher API of Hermes hermes/tts/say

playBytes conflicts with say, as first tts/say is fired, then playBytes