All Projects → Romkabouter → Esp32 Rhasspy Satellite

Romkabouter / Esp32 Rhasspy Satellite

Licence: gpl-3.0
The repo has implementing an esp32 standalone MQTT audio streamer. Is is desinged to work as a satellite for Rhasspy (https://rhasspy.readthedocs.io/en/latest/). It supports multiple devices

Projects that are alternatives of or similar to Esp32 Rhasspy Satellite

Blynk Server
Blynk is an Internet of Things Platform aimed to simplify building mobile and web applications for the Internet of Things. Easily connect 400+ hardware models like Arduino, ESP8266, ESP32, Raspberry Pi and similar MCUs and drag-n-drop IOT mobile apps for iOS and Android in 5 minutes
Stars: ✭ 8 (-94.2%)
Mutual labels:  arduino, esp32, mqtt
Blinker Doc
blinker中文文档
Stars: ✭ 139 (+0.72%)
Mutual labels:  arduino, esp32, mqtt
Espmqttclient
Wifi and MQTT handling for ESP8266 and ESP32
Stars: ✭ 169 (+22.46%)
Mutual labels:  arduino, esp32, mqtt
Espuino
RFID-controlled musicplayer powered by ESP32
Stars: ✭ 71 (-48.55%)
Mutual labels:  arduino, esp32, mqtt
Open Home Automation
Open Home Automation with Home Assistant, ESP8266/ESP32 and MQTT
Stars: ✭ 820 (+494.2%)
Mutual labels:  arduino, esp32, mqtt
Esphelper
A library to make using WiFi & MQTT on the ESP8266 easy.
Stars: ✭ 310 (+124.64%)
Mutual labels:  arduino, esp32, mqtt
Openmqttgateway
MQTT gateway for ESP8266, ESP32, Sonoff RF Bridge or Arduino with bidirectional 433mhz/315mhz/868mhz, Infrared communications, BLE, Bluetooth, beacons detection, mi flora, mi jia, LYWSD02, LYWSD03MMC, Mi Scale, TPMS, BBQ thermometer compatibility, SMS & LORA.
Stars: ✭ 2,413 (+1648.55%)
Mutual labels:  arduino, esp32, mqtt
Async Mqtt Client
📶 An Arduino for ESP8266 asynchronous MQTT client implementation
Stars: ✭ 555 (+302.17%)
Mutual labels:  arduino, esp32, mqtt
Blinker Library
An IoT Solution,Blinker library for embedded hardware. Works with Arduino, ESP8266, ESP32.
Stars: ✭ 1,095 (+693.48%)
Mutual labels:  arduino, esp32, mqtt
Tinygsm
A small Arduino library for GSM modules, that just works
Stars: ✭ 1,186 (+759.42%)
Mutual labels:  arduino, esp32, mqtt
App Release
An IoT Solution,this is the android release app | download ios app in app store
Stars: ✭ 104 (-24.64%)
Mutual labels:  arduino, esp32
Framework32
Framework32 gives your ESP32 the ability to run multiple, graphical apps on very small displays
Stars: ✭ 102 (-26.09%)
Mutual labels:  arduino, esp32
Esp32 soundrecorder
ESP32 Sound recorder with simple code in arduino-esp32. (I2S interface)
Stars: ✭ 96 (-30.43%)
Mutual labels:  arduino, esp32
Ol3d
A tiny portable 3D graphics lib for micro controllers
Stars: ✭ 90 (-34.78%)
Mutual labels:  arduino, esp32
Esp8266 Oled Ssd1306
Driver for the SSD1306 and SH1106 based 128x64, 128x32, 64x48 pixel OLED display running on ESP8266/ESP32
Stars: ✭ 1,590 (+1052.17%)
Mutual labels:  arduino, esp32
Loadcelloccupany
Home automation occupancy sensor using load cells
Stars: ✭ 103 (-25.36%)
Mutual labels:  arduino, mqtt
Perswifimanager
Persistent WiFiManager Arduino library for ESP8266
Stars: ✭ 106 (-23.19%)
Mutual labels:  arduino, esp32
Homie Esp8266
💡 ESP8266 framework for Homie, a lightweight MQTT convention for the IoT
Stars: ✭ 1,241 (+799.28%)
Mutual labels:  arduino, mqtt
Arduinoosc
OSC subscriber / publisher for Arduino
Stars: ✭ 106 (-23.19%)
Mutual labels:  arduino, esp32
E Ink Esp32 Arduino Weather Time Note
You can get time\weather\temperature-inside\humility-inside\pressure-inside\IAQ-inside\QQ-note\computer-info on this device.
Stars: ✭ 114 (-17.39%)
Mutual labels:  arduino, esp32

ESP32 Rhasspy Satellite

The ESP32 Audio Steamer is designed to work as a satellite for Rhasppy (https://rhasspy.readthedocs.io/en/latest/) Please raise an issue if some of the steps do not work or if they are unclear. Support for Snips is dropped.

Features

  • Supports multiple devices, and you are welcomed to add more devices. Read futher below as to how.
  • For the Matrix Voice, during first flash a Raspberri Pi is needed, afer that OTA can be used
  • LED Support
  • OTA Updating
  • Dynamic brightness and colors for idle, hotword and disconnected
  • Mute / unmute microphones via MQTT
  • Mute / unmute speakers via MQTT
  • Adjust volume via MQTT (if supported by device)
  • Adjust output (speaker/jack) via MQTT (if supported by device)
  • Adjust gain via MQTT (if supported by device)
  • Reboot device by sending hashed password
  • Configuration possible in browser
  • Audio playback, recommended not higher than 441000 samplerate (see Known Issues)
  • Hardware button to start session (if supported by device)

Getting started

Matrix Voice

M5 Atom Echo

Audio Kit

MQTT commands

The ESP32 Satellite is subscribed to various topics. The topic SITEID/led, where SITEID is the name you have given the device in settings.ini, is used for commands concerning the leds on the device. When publishing to this topic, the led colors and brightness can be altered without coding and will be saved to a config file

The message can contain 7 keys:

  • brightness: integer value between 0 and 100 (%)
  • hotword_brightness: integer value between 0 and 100 (%)
  • idle: array of 4 codes: [red,green,blue,white], ranging 0-255
  • hotword: array of 4 codes: [red,green,blue,white], ranging 0-255
  • update: array of 4 codes: [red,green,blue,white], ranging 0-255
  • wifi_disconnect: array of 4 codes: [red,green,blue,white], ranging 0-255
  • wifi_connect: array of 4 codes: [red,green,blue,white], ranging 0-255

Example: {"brightness":20,"idle":[240,210,17,0],"hotword":[173,17,240,0]}

The topic SITEID/audio also can receive multiple commands:

  • Mute/unmute microphones: publish {"mute_input":"true"} or {"mute_input":"false"}
  • Mute/unmute playback: publishing {"mute_output":"true"} or {"mute_output":"false"}
  • Change the amp to jack/speaker: publish {"amp_output":"0"} or {"amp_output":"1"} (Only if a device supports this)
  • Adjust mic gain: publish {"gain":5}
  • Adjust volume: publish {"volume": 50} (If device supports this)

Restart the device by publishing {"passwordhash":"yourpasswordhash"} to SITEID/restart

Known issues

  • Uploading sometimes fails or an error is thrown when the uploading is done.
  • Audio playback with sample rate higher than 22050 can lead to hissing/cracking/distortion. Recommended is to use a samplerate of 16000
  • Audio playback with matrix voice is not good, code needs to resample to 44100. WIP
  • Update colors do not work yet

Adding devices

It is possible to add a device that has leds, microphones and/or speakers, the statemachine does not have to change for this.

Adding a device is relatively simple:

  • Update settings.ini.example and give your device a uppercase name and a number
  • Update Satellite.cpp and add a #define with the same name and number you created in the settings.
  • Create a hpp file for your device in the devices folder and implement the methods you need, see the other devices for examples.
  • Add a #ifdef in Satellite.cpp as per examples already there
  • Add needed libraries in platform.ini under lib_deps
  • Search for examples in the code or raise an issue/quastion if you need help
  • Add a "get started" md file and link it in the readme.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].