esp_codec_dev provide register setting to outside
components/esp_codec_dev/device/zl38063/zl38063.c
you call audio_codec_new_spi_ctrl to build spi control interface
then use codec->set_reg to set registers
Search found 39 matches
- Tue Jun 27, 2023 5:23 am
- Forum: ESP-ADF
- Topic: Microsemi zl38063 register access
- Replies: 2
- Views: 5577
- Tue Jun 27, 2023 3:57 am
- Forum: ESP-ADF
- Topic: Changing i2s sample rate dynamically
- Replies: 1
- Views: 4162
Re: Changing i2s sample rate dynamically
i2s has following API:
esp_err_t i2s_stream_set_clk(audio_element_handle_t i2s_stream, int rate, int bits, int ch);
the rate setting is the sample_rate settings, please make sure the input data rate and I2S sample rate is matched or else the tone will listen to be strange
esp_err_t i2s_stream_set_clk(audio_element_handle_t i2s_stream, int rate, int bits, int ch);
the rate setting is the sample_rate settings, please make sure the input data rate and I2S sample rate is matched or else the tone will listen to be strange
- Wed May 31, 2023 8:40 am
- Forum: ESP-ADF
- Topic: Question on ADF's i2s_stream_cfg_t i2s_stream.h -- what is "buffer_len"?
- Replies: 1
- Views: 2873
Re: Question on ADF's i2s_stream_cfg_t i2s_stream.h -- what is "buffer_len"?
Buffer_len is added to fix the issue when play 24bits, the buffer needs sample aligned, if use 1024 it will have issue.
It is added recently and initialized using I2S_STREAM_CFG_DEFAULT()
If your example do not not the macro to do the initialization and assign value manually. It will have issue.
It is added recently and initialized using I2S_STREAM_CFG_DEFAULT()
If your example do not not the macro to do the initialization and assign value manually. It will have issue.
- Mon Apr 03, 2023 4:55 am
- Forum: ESP-ADF 中文讨论版
- Topic: ESP32-C6 何时支持ADF?
- Replies: 3
- Views: 1693
Re: ESP32-C6 何时支持ADF?
C6 的支持需要 ADF适配 IDF 5.1 以上的版本,预计下一个ADF release的版本 v2.6 就可以支持了
- Fri Mar 31, 2023 6:32 am
- Forum: ESP-ADF
- Topic: MP2 encoder MPEG 1 Layer II
- Replies: 2
- Views: 2231
Re: MP2 encoder MPEG 1 Layer II
Currently there is no MP2 encoding yet, or you can port open source MP2 encode into IDF and do test. Is it possible to use aac encoder instead, ADF already provide an optimized aac encoder and can mux into TS container also. You can see https://github.com/espressif/esp-adf/blob/master/examples/recor...
- Tue Mar 21, 2023 6:28 am
- Forum: ESP-ADF
- Topic: 16 bits mp3 resample to 32 bits
- Replies: 3
- Views: 2507
- Wed Mar 15, 2023 10:50 am
- Forum: ESP-ADF
- Topic: How to decode MP3 on ESP32 ?
- Replies: 3
- Views: 45464
Re: How to decode MP3 on ESP32 ?
Suppose your test file is "/sdcard/test.mp3" you can use follow code directly to play mp3. #include <string.h> #include "freertos/FreeRTOS.h" #include "freertos/task.h" #include "esp_log.h" #include "nvs_flash.h" #include "sdkconfig.h" #include "audio_element.h" #include "audio_pipeline.h" #include ...
- Wed Mar 15, 2023 7:36 am
- Forum: ESP-ADF
- Topic: multi-room example fails with "memory exhausted" on ESP32-S3-Korvo-2 V3.0
- Replies: 1
- Views: 2097
Re: multi-room example fails with "memory exhausted" on ESP32-S3-Korvo-2 V3.0
You can enable PSRAM to verify whether this issue fixed or not
idf.py menuconfig --> component config --> esp32s3-Specific --> Support for external SPI-connected RAM
also you can include "audio_mem.h"
audio_mem_print("", __LINE__, __func__); to print the detail memory information in code
idf.py menuconfig --> component config --> esp32s3-Specific --> Support for external SPI-connected RAM
also you can include "audio_mem.h"
audio_mem_print("", __LINE__, __func__); to print the detail memory information in code
- Wed Mar 15, 2023 7:23 am
- Forum: ESP-ADF 中文讨论版
- Topic: 32 bit mp3 i2s 上的設定
- Replies: 1
- Views: 1547
Re: 32 bit mp3 i2s 上的設定
I2S 是支持32bits的,直接配置下bits_per_sample就可以了
目前MP3解码库只支持16bits,所以从decode出来的没有32bits
目前MP3解码库只支持16bits,所以从decode出来的没有32bits
- Wed Mar 15, 2023 7:20 am
- Forum: ESP-ADF 中文讨论版
- Topic: 如何在自己的esp idf工程中添加ADF?
- Replies: 5
- Views: 3966
Re: 如何在自己的esp idf工程中添加ADF?
在example的CMakeLists.txt中添加ADF的components的路径就可以用ADF了
cmake_minimum_required(VERSION 3.5)
include($ENV{ADF_PATH}/CMakeLists.txt) 添加这一行
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
project(bt_source_demo)
在编译前指定ADF_PATH
export ADF_PATH=.../esp-adf-internal
cmake_minimum_required(VERSION 3.5)
include($ENV{ADF_PATH}/CMakeLists.txt) 添加这一行
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
project(bt_source_demo)
在编译前指定ADF_PATH
export ADF_PATH=.../esp-adf-internal