docs: update docs

This commit is contained in:
xysun 2025-02-14 19:11:13 +08:00
parent b485bb4061
commit b5ee5355d9
4 changed files with 7 additions and 3 deletions

View File

@ -6,11 +6,12 @@ Migration from V1.* to V2.*
Configuration and Initialization
--------------------------------
- 1. The legacy configuration initialization method AFE_CONFIG_DEFAULT() has been removed. Please use ``afe_config_init`` to initialize configurations. Modifications can still be made after initialization:
- 1. The legacy configuration initialization method AFE_CONFIG_DEFAULT() has been removed. Please use ``afe_config_init`` to initialize configurations:
.. code-block:: c
afe_config_t *afe_config = afe_config_init("MMNR", models, AFE_TYPE_SR, AFE_MODE_HIGH_PERF);
afe_config_print(afe_config); // print all configurations
- 2. ESP_AFE_SR_HANDLE and ESP_AFE_VC_HANDLE have been removed. Use ``esp_afe_handle_from_config`` to create instances:

View File

@ -19,6 +19,7 @@ Use VADNet
- Select VADNet model
::
idf.py menuconfig
ESP Speech Recognition -> Select voice activity detection -> voice activity detection (vadnet1 medium).
@ -44,7 +45,7 @@ Use VADNet
afe_handle->enable_vad(afe_data); // enable VADNet
afe_handle->reset_vad(afe_data); // reset VADNet status
- VAD Cache and Detection
- VAD Cache
There are two issues in the VAD settings that can cause a delay in the first frame trigger of speech.

View File

@ -7,11 +7,12 @@ rstCopy
配置和初始化
--------------------------------
- 1. 旧的配置初始化方法 AFE_CONFIG_DEFAULT() 已被移除。请使用 ``afe_config_init`` 来初始化配置。初始化后仍可进行修改
- 1. 旧的配置初始化方法 AFE_CONFIG_DEFAULT() 已被移除。请使用 ``afe_config_init`` 来初始化配置:
.. code-block:: c
afe_config_t *afe_config = afe_config_init("MMNR", models, AFE_TYPE_SR, AFE_MODE_HIGH_PERF);
afe_config_print(afe_config); // print all configurations
- 2. ESP_AFE_SR_HANDLE 和 ESP_AFE_VC_HANDLE 已被移除。使用 ``esp_afe_handle_from_config`` 来创建实例:

View File

@ -18,6 +18,7 @@ VADNet 训练数据包括了大约5000小时中文数据 5000 小时英文数
- 选择VADNet模型
::
idf.py menuconfig
ESP Speech Recognition -> Select voice activity detection -> voice activity detection (vadnet1 medium).