You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Here my setup:
esp-idf: V4.4.4
esp-adf: V2.4
Hardware: ESP32-Lyrat Mini
i'm using the library esp_audio.h (esp_audio/include/esp_audio.h) and it work fine.
But I would like to apply audio filters from esp_sonic.h (esp_codec/include/processing/esp_sonic.h) to my audio such as the pitch or write my own audio processing code to change compression or echo.
How to get the audio data from esp_audio.h in order to alter them then to play it live ?
here is my code ```// initializing esp_audio as an audio player -- START
static void setup_player(void) {
if (player ) {
return ;
}
esp_audio_cfg_t cfg = DEFAULT_ESP_AUDIO_CONFIG();
//audio_board_handle_t board_handle = audio_board_init();
board_handle = audio_board_init();
cfg.vol_handle = board_handle->audio_hal;
cfg.vol_set = (audio_volume_set)audio_hal_set_volume;
cfg.vol_get = (audio_volume_get)audio_hal_get_volume;
cfg.prefer_type = ESP_AUDIO_PREFER_MEM; // ESP_AUDIO_PREFER_SPEED
cfg.resample_rate = 48000;
cfg.evt_que = xQueueCreate(3, sizeof(esp_audio_state_t));
player = esp_audio_create(&cfg);
audio_hal_ctrl_codec(board_handle->audio_hal, AUDIO_HAL_CODEC_MODE_BOTH, AUDIO_HAL_CTRL_START);
xTaskCreate(esp_audio_state_task, "player_task", 4096, cfg.evt_que, 1, NULL);
Hi
Here my setup:
esp-idf: V4.4.4
esp-adf: V2.4
Hardware: ESP32-Lyrat Mini
i'm using the library esp_audio.h (esp_audio/include/esp_audio.h) and it work fine.
But I would like to apply audio filters from esp_sonic.h (esp_codec/include/processing/esp_sonic.h) to my audio such as the pitch or write my own audio processing code to change compression or echo.
How to get the audio data from esp_audio.h in order to alter them then to play it live ?
here is my code ```// initializing esp_audio as an audio player -- START
static void setup_player(void) {
if (player ) {
return ;
}
esp_audio_cfg_t cfg = DEFAULT_ESP_AUDIO_CONFIG();
//audio_board_handle_t board_handle = audio_board_init();
board_handle = audio_board_init();
cfg.vol_handle = board_handle->audio_hal;
cfg.vol_set = (audio_volume_set)audio_hal_set_volume;
cfg.vol_get = (audio_volume_get)audio_hal_get_volume;
cfg.prefer_type = ESP_AUDIO_PREFER_MEM; // ESP_AUDIO_PREFER_SPEED
cfg.resample_rate = 48000;
cfg.evt_que = xQueueCreate(3, sizeof(esp_audio_state_t));
player = esp_audio_create(&cfg);
audio_hal_ctrl_codec(board_handle->audio_hal, AUDIO_HAL_CODEC_MODE_BOTH, AUDIO_HAL_CTRL_START);
xTaskCreate(esp_audio_state_task, "player_task", 4096, cfg.evt_que, 1, NULL);
}
void on_button_press(uint8_t num, char* song_url) {
}
The text was updated successfully, but these errors were encountered: