Read the Docs Template Documentation, Release
ESP_LOGI(TAG,
"destroy..."
);
esp_periph_destroy();
Audio Player
Example
esp_audio_cfg_t cfg = {
.in_stream_buf_size = 4096,
/*!< Input buffer size */
.out_stream_buf_size = 4096,
/*!< Output buffer size */
.evt_que = NULL,
/*!< Registered by uesr for
˓
→
receiving esp_audio event */
.resample_rate = 48000,
/*!< sample rate */
.hal = NULL,
/*!<
*/
};
audio_hal_codec_config_t audio_hal_codec_cfg =
AUDIO_HAL_ES8388_DEFAULT();
cfg.hal = audio_hal_init(&audio_hal_codec_cfg, 0);
esp_audio_handle_t player = esp_audio_create(&cfg);
TEST_ASSERT_NOT_EQUAL(player, NULL);
raw_stream_cfg_t raw_cfg = {
.type = AUDIO_STREAM_READER,
};
audio_element_handle_t raw =
raw_stream_init(&raw_cfg);
wav_decoder_cfg_t wav_cfg = DEFAULT_WAV_DECODER_CONFIG();
audio_element_handle_t wav = wav_decoder_init(&wav_cfg);
fatfs_stream_cfg_t fatfs_cfg = {
.type = AUDIO_STREAM_READER,
.root_path = "/sdcard",
};
i2s_stream_cfg_t i2s_cfg = I2S_STREAM_CFG_DEFAULT();
esp_audio_input_stream_add(player, fatfs_stream_init(&fatfs_cfg));
i2s_cfg.type = AUDIO_STREAM_WRITER;
esp_audio_output_stream_add(player, i2s_stream_init(&i2s_cfg));
wav_decoder_cfg_t wav_cfg = DEFAULT_WAV_DECODER_CONFIG();
esp_audio_codec_lib_add(player, AUDIO_CODEC_TYPE_DECODER, wav);
3.4 Development Boards
Hardware details of audio development boards designed by Espressif around ESP32.
3.4.1 ESP32-LyraT V4.3 Hardware Reference
This guide provides functional descriptions, configuration options for ESP32-LyraT V4.3 audio development board.
As an introduction to functionality and using the LyraT, please see
ESP32-LyraT V4.3 Getting Started Guide
. Check
section
if you have different version of the board.
In this Section
3.4. Development Boards
75
Содержание ESP32-LyraT
Страница 1: ...Read the Docs Template Documentation Release Read the Docs Jul 01 2018...
Страница 2: ......
Страница 4: ...ii...
Страница 6: ...Read the Docs Template Documentation Release 2 Contents...
Страница 82: ...Read the Docs Template Documentation Release Fig 3 5 ESP32 LyraT V4 3 Board Layout 78 Chapter 3 Design Guide...
Страница 92: ...Read the Docs Template Documentation Release 88 Chapter 4 Resources...
Страница 94: ...Read the Docs Template Documentation Release 90 Chapter 5 Copyrights and Licenses...
Страница 96: ...Read the Docs Template Documentation Release Fig 6 1 Espressif Audio Development Framework 92 Chapter 6 About...