Closed nanosonde closed 4 years ago
Not sure if this is exactly what you mean, but Rhasspy will handle the playBytes
message if you set the audio output to Hermes.
Somehow I am still attracted by the idea of having each step of the (Snips) processing pipeline available via MQTT(Hermes). For now I could reuse the snips-dialogue-manager which required the „low-level“ Hermes TTS API until a replacement was found.
But you are right:intent handling should not be part of rhasspy which my idea would imply.
It would be nice if rhasspy could also use Hermes protocol for speaking text.
Actual use-case for me would be the usage of AWS Polly for TTS. The Python script below listens for Hermes TTS "say" command plays the returned "WAV" data via Hermes Audio Server protocol: https://github.com/hcooper/snips-tts-polly
hermes/tts/say
to pick up new TTS requests.hermes/audioServer/default/playBytes
.hermes/tts/sayFinished
.The above script also caches already generated WAVs.