• 0 Posts
  • 9 Comments
Joined 3 years ago
cake
Cake day: October 19th, 2023

help-circle



  • I do something like this, but it’s not easy.

    I have all my music on a NAS and two BlueSound speakers that are indexing the NAS.

    For the voice command part I have a raspberry Pi with a microphone hat and running Rhasspy Voice Assistant (bonus: it’s purely offline).

    That interacts over MQTT and is processed by a rather complicated Node-RED flow that handles all the play/pause actions. Voice commands include “Volume Up|Down, Play next track, Skip Album, Skip Artist.”

    All this assumes that you have a playlist loaded and ready to go. It doesn’t look up a track and play it. You can’t say “Play Never Gonna Give You Up By Rick Ashley”, it will just ignore you.

    You could do it with a massive amount of work. You would need to index your music library (track names, artists, albums) and import it into Rhasspy as data for it to learn. It would take a huge amount of processing for that, and it would need to be done every time new tracks are added or removed - which is why I never bothered.

    If there is a way to replicate the google/alexa experience by using locally stored music, I would love to know.