Hi!
I'm using an ESP32-S3-Korvo-2 (V3.1) and I was wondering how to adjust the speaker volume.
I'm able to run the pipeline_http_mp3 example (https://github.com/espressif/esp-adf/tr ... e_http_mp3) just fine. How would I adjust it to increase the volume?
I tried i2s_alc_volume_set(i2s_stream_writer, ...), but that call gives an error. I'm also not sure what values are valid.
Thanks!
Max
Speaker volume control
Re: Speaker volume control
audio_hal_set_volume(board_handle->audio_hal, 100);
Re: Speaker volume control
When making i2s_stream_writer initialization, configure the i2s_cfg.use_alc=true.
Code: Select all
ESP_LOGI(TAG, "[2.2] Create i2s stream to write data to codec chip");
int player_volume=0;
i2s_stream_cfg_t i2s_cfg = I2S_STREAM_CFG_DEFAULT();
i2s_cfg.use_alc = true;
i2s_cfg.volume = player_volume;
i2s_cfg.type = AUDIO_STREAM_WRITER;
i2s_stream_writer = i2s_stream_init(&i2s_cfg);
Who is online
Users browsing this forum: No registered users and 75 guests