Boxlite aec (#465)

* 允许espbox-lite打开aec
微信模式使用小字体

* 软件回声消除

* 支持双麦采集

---------

Co-authored-by: cqm <cqm@97kid.com>
This commit is contained in:
mtdxc
2025-04-10 17:06:15 +08:00
committed by GitHub
parent 18e44ec775
commit f1ad29be3b
6 changed files with 61 additions and 26 deletions

View File

@@ -17,6 +17,10 @@ private:
esp_codec_dev_handle_t output_dev_ = nullptr;
esp_codec_dev_handle_t input_dev_ = nullptr;
// ref buffer used for aec
std::vector<int16_t> ref_buffer_;
int read_pos_ = 0;
int write_pos_ = 0;
void CreateDuplexChannels(gpio_num_t mclk, gpio_num_t bclk, gpio_num_t ws, gpio_num_t dout, gpio_num_t din);