Esp32-Audio-kit-v2.2运行adf的speech-recognition/asr出错

LIUDAN
Posts: 5
Joined: Tue Apr 26, 2022 1:30 pm

Esp32-Audio-kit-v2.2运行adf的speech-recognition/asr出错

Postby LIUDAN » Tue Apr 26, 2022 1:48 pm

编译和烧录都没显示出错,唤醒词能识别就是不会回答
可能是分区表的问题但是我不会改,有人知道怎么改吗

virtual-machine:~/esp11/esp-adf/examples/speech_recognition/asr$ make monitor
Toolchain path: /home/lzdan/.espressif/tools/xtensa-esp32-elf/1.22.0-80-g6c4433a-5.2.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc
Toolchain version: crosstool-ng-1.22.0-80-g6c4433a
Compiler version: 5.2.0
Python requirements from /home/lzdan/esp11/esp-adf/esp-idf/requirements.txt are satisfied.
MONITOR
/home/lzdan/esp11/esp-adf/esp-idf/tools/idf_monitor.py:321: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead.
if StrictVersion(serial.VERSION) < StrictVersion('3.3.0'):
--- idf_monitor on /dev/ttyUSB0 115200 ---
--- Quit: Ctrl+] | Menu: Ctrl+T | Help: Ctrl+T followed by Ctrl+H ---
ets Jun 8 2016 00:22:57

rst:0x1 (POWERON_RESET),boot:0x1f (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:1
load:0x3fff0018,len:4
load:0x3fff001c,len:7264
ho 0 tail 12 room 4
load:0x40078000,len:12892
load:0x40080400,len:7424
entry 0x40080798
I (70) boot: Chip Revision: 1
I (70) boot_comm: chip revision: 1, min. bootloader chip revision: 0
I (41) boot: ESP-IDF v3.3.2-107-g722043f734 2nd stage bootloader
I (41) boot: compile time 16:03:50
I (41) boot: Enabling RNG early entropy source...
I (47) qio_mode: Enabling default flash chip QIO
I (52) boot: SPI Speed : 80MHz
I (57) boot: SPI Mode : QIO
I (61) boot: SPI Flash Size : 4MB
I (65) boot: Partition Table:
I (68) boot: ## Label Usage Type ST Offset Length
I (76) boot: 0 nvs WiFi data 01 02 00009000 00006000
I (83) boot: 1 phy_init RF data 01 01 0000f000 00001000
I (91) boot: 2 factory factory app 00 00 00010000 00300000
I (98) boot: 3 flash_tone Unknown data 01 ff 00310000 00004000
I (105) boot: End of partition table
I (110) boot_comm: chip revision: 1, min. application chip revision: 0
I (117) esp_image: segment 0: paddr=0x00010020 vaddr=0x3f400020 size=0x206fb4 (2125748) map
I (689) esp_image: segment 1: paddr=0x00216fdc vaddr=0x3ffb0000 size=0x0209c ( 8348) load
I (691) esp_image: segment 2: paddr=0x00219080 vaddr=0x40080000 size=0x00400 ( 1024) load
0x40080000: _WindowOverflow4 at /home/lzdan/esp11/esp-adf/esp-idf/components/freertos/xtensa_vectors.S:1779

I (696) esp_image: segment 3: paddr=0x00219488 vaddr=0x40080400 size=0x06b88 ( 27528) load
I (713) esp_image: segment 4: paddr=0x00220018 vaddr=0x400d0018 size=0x4684c (288844) map
0x400d0018: _stext at ??:?

I (790) esp_image: segment 5: paddr=0x0026686c vaddr=0x40086f88 size=0x051f4 ( 20980) load
0x40086f88: xRingbufferSend at /home/lzdan/esp11/esp-adf/esp-idf/components/esp_ringbuf/ringbuf.c:969

I (804) boot: Loaded app from partition at offset 0x10000
I (804) boot: Disabling RNG early entropy source...
I (805) cpu_start: Pro cpu up.
I (809) cpu_start: Application information:
I (813) cpu_start: Project name: speech_recognition_example
I (820) cpu_start: App version: v2.3-163-g5f091bd-dirty
I (826) cpu_start: Compile time: Apr 26 2022 16:03:55
I (832) cpu_start: ELF file SHA256: 73a2d5dce38e631a...
I (838) cpu_start: ESP-IDF: v3.3.2-107-g722043f734
I (845) cpu_start: Starting app cpu, entry point is 0x400812a4
0x400812a4: call_start_cpu1 at /home/lzdan/esp11/esp-adf/esp-idf/components/esp32/cpu_start.c:268

I (0) cpu_start: App cpu up.
I (855) heap_init: Initializing. RAM available for dynamic allocation:
I (862) heap_init: At 3FFAE6E0 len 00001920 (6 KiB): DRAM
I (868) heap_init: At 3FFB3248 len 0002CDB8 (179 KiB): DRAM
I (874) heap_init: At 3FFE0440 len 00003AE0 (14 KiB): D/IRAM
I (881) heap_init: At 3FFE4350 len 0001BCB0 (111 KiB): D/IRAM
I (887) heap_init: At 4008C17C len 00013E84 (79 KiB): IRAM
I (893) cpu_start: Pro cpu start user code
I (15) cpu_start: Starting scheduler on PRO CPU.
I (0) cpu_start: Starting scheduler on APP CPU.
I (16) example_asr_keywords: Initialize SR wn handle
Quantized wakeNet5: wakeNet5X3_v5_hilexin_5_0.97_0.90, mode:0 (Oct 14 2020 16:26:17)
I (29) example_asr_keywords: keywords: hilexin (index = 1)
Fail: index is out of range, the min index is 1, the max index is 1I (35) example_asr_keywords: keywords_num = 1, threshold = 0.000000, sample_rate = 16000, chunksize = 480, sizeof_uint16 = 2
WARNING: Sample length must less than 5000ms in the SINGLE_RECOGNITION mode
SINGLE_RECOGNITION: 2_0 MN1_4; core: 0; (May 15 2020 14:50:27)
SHIFT: 8, 12, 17, 17, 19, 17, 6, 16, 15, 14,
I (78) example_asr_keywords: keywords_num = 166 , sample_rate = 16000, chunksize = 480, sizeof_uint16 = 2
I (79) example_asr_keywords: [ 1 ] Start codec chip
I (586) example_asr_keywords: [ 2.0 ] Create audio pipeline for recording
I (586) example_asr_keywords: [ 2.1 ] Create i2s stream to read audio data from codec chip
I (593) example_asr_keywords: [ 2.2 ] Create filter to resample audio data
I (599) example_asr_keywords: [ 2.3 ] Create raw to receive data
I (605) example_asr_keywords: [ 3 ] Register all elements to audio pipeline
I (613) example_asr_keywords: [ 4 ] Link elements together [codec_chip]-->i2s_stream-->filter-->raw-->[SR]

----------------------------- ESP Audio Platform -----------------------------
| |
| ESP_AUDIO-v1.7.0-31-g5b8f999-3072767-09be8fe |
| Compile date: Oct 14 2021-11:00:34 |
------------------------------------------------------------------------------
W (668) I2S: I2S driver already installed
I (669) example_asr_keywords: esp_audio instance is:0x3ffd2b0c

I (676) example_asr_keywords: [ 5 ] Start audio_pipeline
E (168907) TONE_PARTITION: Not flash tone partition 这里好像是说tnoe没有烧录进去
E (168907) AUDIO_ELEMENT: [IN_flash] AEL_STATUS_ERROR_OPEN,-1
E (168908) ESP_AUDIO_TASK: Got element[IN_flash] error:ESP_ERR_AUDIO_OPEN, stop pipeline[0]
W (168917) AUDIO_ELEMENT: IN-[DEC_mp3] AEL_IO_ABORT
E (168922) MP3_DECODER: failed to read audio data (line 119)
W (168929) AUDIO_ELEMENT: [DEC_mp3] AEL_IO_ABORT, -3
W (168934) AUDIO_ELEMENT: [IN_flash] audio_element_on_cmd_error,7
E (168941) TONE_PARTITION: /home/lzdan/esp11/esp-adf/components/tone_partition/tone_partition.c:204 (tone_partition_deinit): Got NULL Pointer
E (168954) AUDIO_ELEMENT: [IN_flash] Element already stopped
E (168961) AUDIO_ELEMENT: [DEC_mp3] Element already stopped
W (168967) ESP_AUDIO_TASK: Destroy the old pipeline, ELEMENT OCCUR ERROR
W (168975) AUDIO_ELEMENT: [OUT_iis] Element has not create when AUDIO_ELEMENT_TERMINATE, tick:300
W (168984) AUDIO_ELEMENT: [Audio_forge] Element has not create when AUDIO_ELEMENT_TERMINATE, tick:300
W (168994) ESP_AUDIO_TASK: The old pipeline destroyed, ELEMENT OCCUR ERROR 这里有错误
I (169002) example_asr_keywords: wake up
I (176311) example_asr_keywords: stop multinet

ESP_HengYC
Posts: 184
Joined: Fri Dec 15, 2017 2:45 am

Re: Esp32-Audio-kit-v2.2运行adf的speech-recognition/asr出错

Postby ESP_HengYC » Mon May 09, 2022 9:00 am

因为 esp-sr 更新的缘故, asr 这个例程被 wwe 替代了, 请更新 adf ,然后使用 wwe 来测试。 谢谢

https://github.com/espressif/esp-adf/tr ... nition/wwe

LIUDAN
Posts: 5
Joined: Tue Apr 26, 2022 1:30 pm

Re: Esp32-Audio-kit-v2.2运行adf的speech-recognition/asr出错

Postby LIUDAN » Mon May 09, 2022 1:14 pm

ESP_HengYC wrote: 因为 esp-sr 更新的缘故, asr 这个例程被 wwe 替代了, 请更新 adf ,然后使用 wwe 来测试。 谢谢

https://github.com/espressif/esp-adf/tr ... nition/wwe
我重新拉取了adf运行wwe.还是会有这样的错误啊。而且还有其他新的错误更多了。
Attachments
IMG20220509211335.jpg
IMG20220509211335.jpg (17.77 MiB) Viewed 4774 times
IMG20220509204309.jpg
IMG20220509204309.jpg (4.54 MiB) Viewed 4774 times

ESP_HengYC
Posts: 184
Joined: Fri Dec 15, 2017 2:45 am

Re: Esp32-Audio-kit-v2.2运行adf的speech-recognition/asr出错

Postby ESP_HengYC » Tue May 10, 2022 3:52 am

LIUDAN wrote:
Mon May 09, 2022 1:14 pm
ESP_HengYC wrote: 因为 esp-sr 更新的缘故, asr 这个例程被 wwe 替代了, 请更新 adf ,然后使用 wwe 来测试。 谢谢

https://github.com/espressif/esp-adf/tr ... nition/wwe
我重新拉取了adf运行wwe.还是会有这样的错误啊。而且还有其他新的错误更多了。
你的问题是 芯片硬件版本太低, v1 的版本, 所以 有些需要 task 建 在 PSRAM 的操作会失败, 你把 psram 关了,试试, 或者使用 v3 的 芯片。

LIUDAN
Posts: 5
Joined: Tue Apr 26, 2022 1:30 pm

Re: Esp32-Audio-kit-v2.2运行adf的speech-recognition/asr出错

Postby LIUDAN » Thu May 12, 2022 2:29 am

你的问题是 芯片硬件版本太低, v1 的版本, 所以 有些需要 task 建 在 PSRAM 的操作会失败, 你把 psram 关了,试试, 或者使用 v3 的 芯片。
[/quote]
psram怎么关?还有,我打开发现配置里没有命令词,也添加不了
Attachments
4ef0d7db4967f1d5.png
4ef0d7db4967f1d5.png (12.94 KiB) Viewed 4697 times

ESP_HengYC
Posts: 184
Joined: Fri Dec 15, 2017 2:45 am

Re: Esp32-Audio-kit-v2.2运行adf的speech-recognition/asr出错

Postby ESP_HengYC » Fri May 13, 2022 9:06 am

LIUDAN wrote:
Thu May 12, 2022 2:29 am
你的问题是 芯片硬件版本太低, v1 的版本, 所以 有些需要 task 建 在 PSRAM 的操作会失败, 你把 psram 关了,试试, 或者使用 v3 的 芯片。
psram怎么关?还有,我打开发现配置里没有命令词,也添加不了
[/quote]


use wakenet 是唤醒词, 用来唤醒的。

use multinet 打开 就是使能命令词。 你的这里没有代开使能。

Who is online

Users browsing this forum: No registered users and 8 guests