MQTT-Based Audio Player for ESP Muse Luxe

Hello Raspiaudio Community,

I’m excited to share a project I’ve been working on with the ESP Muse Luxe. Inspired by the examples provided in the Muse Library, I developed an MQTT-based audio player to enhance the ESP Muse Luxe’s responsiveness and functionality, thanks to its lightweight design.

Key Features:

Almost Instant Response: The player reacts promptly to MQTT topics, ensuring seamless operation.

Versatile Playback: Supports sounds, notifications, local music, radio stations, and Text-to-Speech (TTS) from services like Google and OpenAI.

You can find the project on GitHub: GitHub - mguellsegarra/muse-mqtt-audioplayer: 🔊 An Arduino sketch for ESP32-based MUSE Luxe board that enables network audio streaming via MQTT control..

I want to extend my gratitude to the Raspiaudio team and this community for their support and inspiration. Your dedication to audio innovation has been instrumental in bringing this project to life :slight_smile:

Looking forward to your feedback and any discussions on potential improvements!

Best regards,

Thanks for sharing, so you are using it in Home Assistant with MQTT?

Indeed!

See these script examples, for playing an alarm sound in loop and one for stopping any sounds :slight_smile:

play_alarm:
  alias: "Play alarm in loop"
  sequence:
    - service: mqtt.publish
      data:
        topic: "speaker/control"
        payload: >
          {
            "speaker_id": "living_room",
            "command": "play",
            "url": "http://192.168.1.100:8123/local/alarm.mp3",
            "volume": 100,
            "repeat": true
          }
        qos: 0
        retain: false
stop_sounds:
  alias: "Stop any sounds"
  sequence:
    - service: mqtt.publish
      data:
        topic: "speaker/control"
        payload: >
          {
            "speaker_id": "living_room",
            "command": "stop"
          }
        qos: 0
        retain: false

I place the sounds inside the www/ folder of my Home Assistant config/, and that’s all!

very handy indeed, thx