当前位置:网站首页>[004] [esp32 Development Notes] audio development framework ADF environment construction - based on esp-idf
[004] [esp32 Development Notes] audio development framework ADF environment construction - based on esp-idf
2022-06-09 04:32:00 【Cauchy's hesitation】
1 ADF Environment building
stay ESP-IDF Environment ESP-ADF Environmental Science

After successful installation , Several library files are missing and not installed , They are embedded esp-idf、esp-idf-libs(adf Audio library )、esp-sr(adf Speech recognition library ), Because these libraries are esp-idf-master Warehouse The following are all branches branch Stored as a link .
- Libraries that need to be installed separately
Method 1 :


Copy these files to respectively ..\esp-adf\esp-idf、..\esp-adf\components\esp-adf-libs、..\esp-adf\components\esp-sr In the folder .
Method 2 : use git Command clone warehouse :
- stay
esp-adf-libsExecute under directory :
git clone https://gitclone.com/github.com/espressif/esp-adf-libs
- stay
esp-srExecute under directory :
git clone https://gitclone.com/github.com/espressif/esp-sr.git
git Cloned
esp-srThe library files , Some documents are missing after my test , Error will be reported in compilation , Later, it can be downloaded and copied directly in the official warehouse .
- stay
esp-idfExecute under directory :
git clone https://gitclone.com/github.com/espressif/esp-idf
- After downloading the above warehouse , modify
adf Under the table of contents .gitmodulesIs as follows :
[submodule "esp-idf"]
path = esp-idf
url = https://gitclone.com/github.com/espressif/esp-idf
[submodule "components/esp-adf-libs"]
path = components/esp-adf-libs
url = https://gitclone.com/github.com/espressif/esp-adf-libs
[submodule "components/esp-sr"]
path = components/esp-sr
url = https://gitclone.com/github.com/espressif/esp-sr.git
When the two warehouses are downloaded , stay adf Under the table of contents cmd perform git submodule update --init, This step switches the two sub modules to the current mode ADF Required version .
- Add environment variables
Method 1 : stay Command Promp Run the following command in :
set ADF_PATH=D:\ESP-IDF\esp-adf
ADF_PATHby ADF Library installation path
Method 2 : Get into git bash Of vim The editor enters the following command :
export IDF_PATH="D:\ESP-IDF\esp-adf"
Press... When input is complete ESC key , Then input :wq Click enter .
Method 3 : Manually add :
If you don't add environment variables , You can directly use the path where the library is located :
include(D:/ESP-IDF/esp-iot-solution/component.cmake)
include($ENV{IOT_SOLUTION_PATH}/component.cmake)
- stay ESP-IDF Add... To plug-in settings
ADFThe installation path
- Select the development board corresponding to the chip model
HALlibrary ( My isESP32-S2)
compile demo test :
Reference resources :
ESP32 ADF windows Development environment construction adapter ADF To ESP32A1S
ESP32_Lyrat Development environment construction , install IDF And ADF, Burn in demo Play an audio
ESP32 Learning notes (37)—— build ESP-ADF( Lexin audio development framework )
2 patch up
Because we have chosen by default to psram Audio task stack running on , This means that you need to apply a patch $ADF_PATH/idf_patches/idf_v4.4_freertos.patch To support this feature .(4.4 And IDF Version guarantee consistency )
stay esp-idf Right click under the path git-bash-here Input :
git apply ./idf_v4.4_freertos.patch
3 Common errors and configurations
- error:esp-adf/components/audio_board/lyrat_v4_3/board_pins_config.c
no choice ADF The development board corresponding to the library
- esp-iot-solution The code framework :unknown type name ‘i2s_dac_mode_t’
- https The link needs to be authenticated with a certificate


- AAC Decoding failed , modify Menuconfig

To run AAC decoder , System task tick timeCONFIG_FREERTOS_HZShould be set to 1000 Hz:
END
边栏推荐
- big. js、bignumber. JS and decimal JS differences
- PHP e签宝电子签名Saas API 对接流程
- Format interchange among Yolo, coco and VOC datasets
- golang---redis操作
- Proteus simulation Arduino
- golang---並發runtime包
- 音频功率放大电路(使用过的语音方案电路记录)
- Where will the money go in the SaaS industry in 2022?
- big.js、bignumber.js 和 decimal.js 的区别
- MySQL:常用的统计、分组统计、时间格式转换
猜你喜欢
随机推荐
Devin round smart screen comes into the market
Stepn analysis
openGL_ 01 create window
Golang--- concurrent goroutine
golang ---image--热力图与照片的重叠
View local public IP
Win10注册表无法保存对权限所作的更改拒绝访问
VS Code `launch.json` 和 `task.json` 中可使用的预定义变量
迪文圆形智能屏上市
JVM面试
PHP e-signature SaaS API docking process
How to calculate the rarity of NFT?
模板:常系数齐次线性递推(线性代数、多项式)
Rigidbody2d SweepTest Rigidbody2D.Cast 但用于rotation 旋转
User controlled keyboard and mouse custom script
[6.824 distributed system] LEC 6 & 7: fault tolerance: raft
通用泛型 列表 实现map max min
【6.824分布式系统】LEC 6&7: Fault Tolerance: Raft
MySQL queries which table in the database has the most fields
golang---並發runtime包







