Add EVS control portal, io_mode switching, and DAC-only speaker path
Some checks failed
Build and Push EVS Bridge Image / docker (push) Has been cancelled

This commit is contained in:
Kai
2026-02-15 13:16:41 +01:00
parent 179440858b
commit 04c59c3b25
13 changed files with 1257 additions and 89 deletions

View File

@@ -11,6 +11,11 @@ static const char* WIFI_PASSWORD = "REPLACE_WIFI_PASSWORD";
static const char* EVS_BRIDGE_HOST = "REPLACE_BRIDGE_IP_OR_HOST";
static constexpr uint16_t EVS_WS_PORT = 8765;
static const char* EVS_WS_PATH = "/audio";
static const char* EVS_MQTT_HOST = "REPLACE_MQTT_IP_OR_HOST";
static constexpr uint16_t EVS_MQTT_PORT = 1883;
static const char* EVS_MQTT_USER = "";
static const char* EVS_MQTT_PASSWORD = "";
static const char* EVS_MQTT_BASE_TOPIC = "evs";
// Unique device name per ESP32
static const char* EVS_DEVICE_ID = "esp32-room-name";
@@ -20,6 +25,18 @@ static constexpr uint32_t EVS_RECONNECT_MS = 5000;
static constexpr bool EVS_DEFAULT_STREAM_MODE = true;
static constexpr bool EVS_SERIAL_COMMAND_ECHO = true;
// Device role flags:
// - mic-only client: EVS_ENABLE_MIC=1, EVS_ENABLE_SPEAKER=0
// - speaker-only client: EVS_ENABLE_MIC=0, EVS_ENABLE_SPEAKER=1
// - combined client: EVS_ENABLE_MIC=1, EVS_ENABLE_SPEAKER=1
#define EVS_ENABLE_MIC 1
#define EVS_ENABLE_SPEAKER 1
// Runtime IO mode at boot ("mic" or "spk"), can be changed later via MQTT command.
#define EVS_DEFAULT_IO_MODE "mic"
// Speaker output uses ESP32 internal DAC only.
// Valid pins: GPIO25 or GPIO26.
#define EVS_SPK_DAC_PIN 25
// INMP441 tuning
// L/R pin on mic:
// - GND usually = left channel