语音唤醒一直出现Fail: index is out of range求助

yuanjie
Posts: 20
Joined: Wed Dec 22, 2021 3:26 pm

语音唤醒一直出现Fail: index is out of range求助

Postby yuanjie » Tue Feb 22, 2022 10:39 am

I (772) spi_flash: flash io: qio
I (772) cpu_start: Starting scheduler on PRO CPU.
I (0) cpu_start: Starting scheduler on APP CPU.
I (785) example_asr_keywords: Initialize SR wn handle
Quantized wakeNet5: wakeNet5_v1_hilexin_5_0.95_0.90, mode:0 (Oct 14 2020 16:26:17)
I (798) example_asr_keywords: keywords: hilexin (index = 1)
Fail: index is out of range, the min index is 1, the max index is 1I (804) 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 (847) example_asr_keywords: keywords_num = 166 , sample_rate = 16000, chunksize = 480, sizeof_uint16 = 2
I (848) example_asr_keywords: [ 1 ] Start codec chip
I (1355) example_asr_keywords: [ 2.0 ] Create audio pipeline for recording
I (1355) example_asr_keywords: [ 2.1 ] Create i2s stream to read audio data from codec chip
I (1376) example_asr_keywords: [ 2.3 ] Create raw to receive data
I (1376) example_asr_keywords: [ 3 ] Register all elements to audio pipeline
I (1380) example_asr_keywords: [ 4 ] Link elements together [codec_chip]-->i2s_stream-->raw-->[SR]
W (1491) I2C_BUS: i2c_bus_create:53: I2C bus has been already created, [port:0]

----------------------------- ESP Audio Platform -----------------------------
| |
| ESP_AUDIO-v1.7.0-31-g5b8f999-3072767-09be8fe |
| Compile date: Oct 14 2021-11:00:34 |
------------------------------------------------------------------------------
I (1556) example_asr_keywords: esp_audio instance is:0x3ffce8f0

I (1556) example_asr_keywords: [ 5 ] Start audio_pipeline

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

Re: 语音唤醒一直出现Fail: index is out of range求助

Postby ESP_HengYC » Mon Feb 28, 2022 8:08 am

你好,

esp-sr 更新后,一些接口也发生了变化, ASR 例程已经在 ADF 中被删除, 替代的是 WWE(https://github.com/espressif/esp-adf/tr ... nition/wwe) 例程, WWE 包含了 asr 的全部功能,并且使用了 high level recorder 接口,你可以试一下。

Who is online

Users browsing this forum: No registered users and 23 guests