尝试WWE例程,无法唤醒,ESP32-S3 + ES8388

HangHang
Posts: 1
Joined: Mon Sep 18, 2023 6:20 am

尝试WWE例程,无法唤醒,ESP32-S3 + ES8388

Postby HangHang » Thu Oct 26, 2023 2:02 am

硬件使用ESP32-S3 + ES8388,参考lyraT4.3绘制。
硬件用别的例程试过录音到SD卡、以及播放歌曲,都正常。

但尝试WWE例程,喊“hi,乐鑫”,没有任何反应,日志如下:

Code: Select all

I (43) boot: ESP-IDF v4.4.6-dirty 2nd stage bootloader
I (43) boot: compile time 03:39:21
I (43) boot: Multicore bootloader
I (46) boot: chip revision: v0.2
I (50) qio_mode: Enabling default flash chip QIO
I (55) boot.esp32s3: Boot SPI Speed : 80MHz
I (60) boot.esp32s3: SPI Mode       : QIO
I (64) boot.esp32s3: SPI Flash Size : 16MB
I (69) boot: Enabling RNG early entropy source...
I (75) boot: Partition Table:
I (78) boot: ## Label            Usage          Type ST Offset   Length
I (85) boot:  0 nvs              WiFi data        01 02 00009000 00004000
I (93) boot:  1 otadata          OTA data         01 00 0000d000 00002000
I (100) boot:  2 phy_init         RF data          01 01 0000f000 00001000
I (108) boot:  3 ota_0            OTA app          00 10 00010000 00290000
I (115) boot:  4 model            Unknown data     01 82 002a0000 00500000
I (123) boot:  5 flash_tone       Unknown data     01 27 007a0000 00032000
I (131) boot: End of partition table
I (135) esp_image: segment 0: paddr=00010020 vaddr=3c080020 size=2b298h (176792) map
I (170) esp_image: segment 1: paddr=0003b2c0 vaddr=3fc99440 size=04c48h ( 19528) load
I (174) esp_image: segment 2: paddr=0003ff10 vaddr=40378000 size=00108h (   264) load
I (176) esp_image: segment 3: paddr=00040020 vaddr=42000020 size=7ddbch (515516) map
I (262) esp_image: segment 4: paddr=000bdde4 vaddr=40378108 size=11338h ( 70456) load
I (283) boot: Loaded app from partition at offset 0x10000
I (283) boot: Disabling RNG early entropy source...
I (295) cpu_start: Multicore app
I (295) opi psram: vendor id : 0x0d (AP)
I (295) opi psram: dev id    : 0x02 (generation 3)
I (298) opi psram: density   : 0x03 (64 Mbit)
I (303) opi psram: good-die  : 0x01 (Pass)
I (307) opi psram: Latency   : 0x01 (Fixed)
I (312) opi psram: VCC       : 0x01 (3V)
I (317) opi psram: SRF       : 0x01 (Fast Refresh)
I (322) opi psram: BurstType : 0x01 (Hybrid Wrap)
I (328) opi psram: BurstLen  : 0x01 (32 Byte)
I (333) opi psram: Readlatency  : 0x02 (10 cycles@Fixed)
I (339) opi psram: DriveStrength: 0x00 (1/1)
I (344) MSPI Timing: PSRAM timing tuning index: 4
I (349) spiram: Found 64MBit SPI RAM device
I (354) spiram: SPI RAM mode: sram 80m
I (358) spiram: PSRAM initialized, cache is in normal (1-core) mode.
I (365) cpu_start: Pro cpu up.
I (369) cpu_start: Starting app cpu, entry point is 0x403794f4
0x403794f4: call_start_cpu1 at D:/esp/4.4.6/esp-idf/components/esp_system/port/cpu_start.c:151

I (0) cpu_start: App cpu up.
I (658) spiram: SPI SRAM memory test OK
I (666) cpu_start: Pro cpu start user code
I (666) cpu_start: cpu freq: 240000000
I (666) cpu_start: Application information:
I (669) cpu_start: Project name:     example_wwe
I (674) cpu_start: App version:      1
I (679) cpu_start: Compile time:     Oct 26 2023 03:47:02
I (685) cpu_start: ELF file SHA256:  65f870c046020b34...
I (691) cpu_start: ESP-IDF:          v4.4.6-dirty
I (696) cpu_start: Min chip rev:     v0.0
I (701) cpu_start: Max chip rev:     v0.99
I (706) cpu_start: Chip rev:         v0.2
I (711) heap_init: Initializing. RAM available for dynamic allocation:
I (718) heap_init: At 3FC9F128 len 0004A5E8 (297 KiB): D/IRAM
I (724) heap_init: At 3FCE9710 len 00005724 (21 KiB): STACK/DIRAM
I (731) heap_init: At 600FE000 len 00002000 (8 KiB): RTCRAM
I (737) spiram: Adding pool of 8192K of external SPI memory to heap allocator
I (745) spi_flash: detected chip: gd
I (749) spi_flash: flash io: qio
I (754) sleep: Configure to isolate all GPIO pins in sleep state
I (760) sleep: Enable automatic switching of GPIO sleep configuration
I (767) cpu_start: Starting scheduler on PRO CPU.
I (0) cpu_start: Starting scheduler on APP CPU.
I (788) spiram: Reserving pool of 32K of internal memory for DMA/internal allocations
I (788) gpio: GPIO[1]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:3 
I (808) gpio: GPIO[38]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0
I (808) ES8388_DRIVER: init,out:02, in:00
W (818) AUDIO_BOARD: The board has already been initialized!

----------------------------- ESP Audio Platform -----------------------------
|                                                                            |
|                       ESP_AUDIO-v1.7.3-7e1b14a-d08db1d                     |
|                     Compile date: Jul 31 2023-03:46:33                     |
------------------------------------------------------------------------------
I (858) wwe_example: Func:setup_player, Line:105, MEM Total:8652867 Bytes, Inter:293791 Bytes, Dram:293791 Bytes

I (868) wwe_example: esp_audio instance is:0x3d800b14

E (878) I2S: register I2S object to platform failed
I (978) wwe_example: Recorder has been created
I (978) MODEL_LOADER: The storage free size is 15680 KB
I (978) MODEL_LOADER: The partition size is 5120 KB
I (988) MODEL_LOADER: Successfully map model partition
I (988) RECORDER_SR: The first wakenet model: wn9_hilexin

I (998) AFE_SR: afe interface for speech recognition

I (998) AFE_SR: AFE version: SR_V220727

I (1008) AFE_SR: Initial auido front-end, total channel: 3, mic num: 2, ref num: 1

I (1018) AFE_SR: aec_init: 0, se_init: 1, vad_init: 1

I (1018) AFE_SR: wakenet_init: 1

MC Quantized wakenet9: wakenet9_v1h24_hilexin_3_0.608_0.615, tigger:v3, mode:2, p:0, (Sep 13 2023 17:58:02)
I (1228) AFE_SR: wake num: 3, mode: 0, (Sep 13 2023 18:00:41)

, beam search:v2, (Sep 13 2023 17:58:02)_0.9_0.90
esp_mn_commands_update_from_sdkconfig
I (1408) MN_COMMAND: ---------------------SPEECH COMMANDS---------------------
I (1418) MN_COMMAND: Command ID0, phrase ID0: da kai kong tiao
I (1418) MN_COMMAND: Command ID1, phrase ID1: guan bi kong tiao
I (1428) MN_COMMAND: Command ID2, phrase ID2: zeng da feng su
I (1428) MN_COMMAND: Command ID3, phrase ID3: jian xiao feng su
I (1438) MN_COMMAND: Command ID4, phrase ID4: sheng gao yi du
I (1448) MN_COMMAND: Command ID5, phrase ID5: jiang di yi du
I (1448) MN_COMMAND: Command ID6, phrase ID6: zhi re mo shi
I (1458) MN_COMMAND: Command ID7, phrase ID7: zhi leng mo shi
I (1468) MN_COMMAND: Command ID8, phrase ID8: song feng mo shi
I (1468) MN_COMMAND: Command ID9, phrase ID9: jie neng mo shi
I (1478) MN_COMMAND: Command ID10, phrase ID10: chu shi mo shi
I (1488) MN_COMMAND: Command ID11, phrase ID11: jian kang mo shi
I (1488) MN_COMMAND: Command ID12, phrase ID12: shui mian mo shi
I (1498) MN_COMMAND: Command ID13, phrase ID13: da kai lan ya
I (1508) MN_COMMAND: Command ID14, phrase ID14: guan bi lan ya
I (1508) MN_COMMAND: Command ID15, phrase ID15: kai shi bo fang
I (1518) MN_COMMAND: Command ID16, phrase ID16: zan ting bo fang
I (1528) MN_COMMAND: Command ID17, phrase ID17: ding shi yi xiao shi
I (1528) MN_COMMAND: Command ID18, phrase ID18: da kai dian deng
I (1538) MN_COMMAND: Command ID19, phrase ID19: guan bi dian deng
I (1548) MN_COMMAND: ---------------------------------------------------------
其中不对劲的地方似乎只有两条报错

Code: Select all

W (818) AUDIO_BOARD: The board has already been initialized!
E (878) I2S: register I2S object to platform failed

但注释掉app_main中的
//setup_player();

只运行start_recorder();
rec_q = xQueueCreate(3, sizeof(int));
audio_thread_create(NULL, "read_task", voice_read_task, NULL, 4 * 1024, 5, true, 0);
就没有那两条报错了。

但是唤醒词还是无法识别,也没有出现其他的更多报错。
之后也尝试过其它录放音例子、均正常,唯独唤醒词用不了。



想知道排查这个问题的方向,或者得到一些建议,感谢💕

Who is online

Users browsing this forum: No registered users and 15 guests