arendst / Tasmota

Alternative firmware for ESP8266 and ESP32 based devices with easy configuration using webUI, OTA updates, automation using timers or rules, expandability and entirely local control over MQTT, HTTP, Serial or KNX. Full documentation at
https://tasmota.github.io/docs
GNU General Public License v3.0
21.71k stars 4.72k forks source link

I2S audio: small refactoring, more robust handling of commands #21439

Closed Staars closed 1 month ago

Staars commented 1 month ago

Description:

More robust handling of commands, especially allowing to stop a running web radio session with any other command like i2ssay, i2stime or i2srtttl.

The old way to just call i2swr or i2sstop as described in docs is still valid.

Removal of old command i2smgain, that did not work anyway in the last versions and is replaced by i2sconfig {"Rx":{"Gain":20}} where gain is the factor to multiply a typically very weak microphone signal with.

Some refactoring, renaming and removal of unnecessary function calls.

Checklist:

NOTE: The code change must pass CI tests. Your PR cannot be merged unless tests pass