espressif / esp-adf

Espressif Audio Development Framework
Other
1.53k stars 672 forks source link

更新后dueros例程有的时候可以完整播放儿歌或者笑话,但是播放速率不正常,比正常音频慢,不知道你们测试的时候有没有。 #92

Closed cc1227858751 closed 5 years ago

cc1227858751 commented 5 years ago

更新后dueros例程有的时候可以完整播放儿歌或者笑话,但是播放速率不正常,比正常音频慢,不知道你们测试的时候有没有。

jason-mao commented 5 years ago

@cc1227858751 你更新有使用如下步骤吗,“git pull, git submodule update”.都有操作的话,帮提供一下log。

cc1227858751 commented 5 years ago

@cc1227858751 你更新有使用如下步骤吗,“git pull, git submodule update”.都有操作的话,帮提供一下log。

原有adf丢失,直接clone的最新版,log没有保存,下午测试完再提供,谢谢您及时回复。

cc1227858751 commented 5 years ago

ets Jun 8 2016 00:22:57

rst:0x1 (POWERON_RESET),boot:0x3f (SPI_FAST_FLASH_BOOT) flash read err, 1000 ets_main.c 371 ets Jun 8 2016 00:22:57

rst:0x10 (RTCWDT_RTC_RESET),boot:0x3f (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:2 load:0x3fff0018,len:4 load:0x3fff001c,len:5960 load:0x40078000,len:7892 load:0x40080000,len:5904 entry 0x4008031c I (29) boot: ESP-IDF v3.1.1-6-g2aa9a2118 2nd stage bootloader I (29) boot: compile time 15:26:45 I (33) boot: Enabling RNG early entropy source... I (35) boot: SPI Speed : 40MHz I (39) boot: SPI Mode : DIO I (43) boot: SPI Flash Size : 4MB I (47) boot: Partition Table: I (51) boot: ## Label Usage Type ST Offset Length I (58) boot: 0 nvs WiFi data 01 02 00009000 00006000 I (65) boot: 1 phy_init RF data 01 01 0000f000 00001000 I (73) boot: 2 factory factory app 00 00 00010000 00300000 I (80) boot: End of partition table I (84) esp_image: segment 0: paddr=0x00010020 vaddr=0x3f400020 size=0x916c0 (595648) map I (300) esp_image: segment 1: paddr=0x000a16e8 vaddr=0x3ffb0000 size=0x040d0 ( 16592) load I (306) esp_image: segment 2: paddr=0x000a57c0 vaddr=0x3ffb40d0 size=0x00000 ( 0) load I (307) esp_image: segment 3: paddr=0x000a57c8 vaddr=0x40080000 size=0x00400 ( 1024) load I (316) esp_image: segment 4: paddr=0x000a5bd0 vaddr=0x40080400 size=0x0a440 ( 42048) load I (341) esp_image: segment 5: paddr=0x000b0018 vaddr=0x400d0018 size=0x1331c0 (1257920) map I (777) esp_image: segment 6: paddr=0x001e31e0 vaddr=0x4008a840 size=0x0d750 ( 55120) load I (799) esp_image: segment 7: paddr=0x001f0938 vaddr=0x400c0000 size=0x00000 ( 0) load I (799) esp_image: segment 8: paddr=0x001f0940 vaddr=0x50000000 size=0x00000 ( 0) load I (820) boot: Loaded app from partition at offset 0x10000 I (820) boot: Disabling RNG early entropy source... I (820) spiram: SPI RAM mode: flash 80m sram 80m I (825) spiram: PSRAM initialized, cache is in low/high (2-core) mode. I (832) cpu_start: Pro cpu up. I (836) cpu_start: Starting app cpu, entry point is 0x40081508 I (0) cpu_start: App cpu up. I (1305) spiram: SPI SRAM memory test OK I (1306) heap_init: Initializing. RAM available for dynamic allocation: I (1306) heap_init: At 3FFAE6E0 len 00001920 (6 KiB): DRAM I (1312) heap_init: At 3FFBB710 len 000248F0 (146 KiB): DRAM I (1318) heap_init: At 3FFE0440 len 00003BC0 (14 KiB): D/IRAM I (1325) heap_init: At 3FFE4350 len 0001BCB0 (111 KiB): D/IRAM I (1331) heap_init: At 40097F90 len 00008070 (32 KiB): IRAM I (1338) cpu_start: Pro cpu start user code I (1342) spiram: Adding pool of 4096K of external SPI memory to heap allocator I (1350) spiram: Reserving pool of 32K of internal memory for DMA/internal allocations I (30) cpu_start: Starting scheduler on PRO CPU. I (0) cpu_start: Starting scheduler on APP CPU. I (82) DUEROS: ADF version is v1.0-beta1-74-gb58ecad-dirty W (82) ESP_PERIPH: Peripherals have been initialized already I (84) gpio: GPIO[36]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:3  I (93) gpio: GPIO[39]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:3  W (128) PERIPH_TOUCH: _touch_init I (128) SDCARD: Trying to mount with base path=/sdcard I (176) SDCARD: CID name SD !  I (347,tid:3ffc04dc) lightduer_session.c( 44):random = 75933 I (404) gpio: GPIO[19]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:3  E (407) gpio: gpio_install_isr_service(394): GPIO isr service already installed I (417) wifi: wifi driver task: 3ffc3280, prio:23, stack:3584, core=0 I (421) wifi: wifi firmware version: b2c9a19 I (425) wifi: config NVS flash: enabled I (426) gpio: GPIO[21]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0  I (429) wifi: config nano formating: disabled I (438) ES8388_DRIVER: init,out:02, in:00 I (443) system_api: Base MAC address is not set, read default base MAC address from BLK0 of EFUSE I (454) AUDIO_HAL: Codec mode is 1, Ctrl:1 I (456) system_api: Base MAC address is not set, read default base MAC address from BLK0 of EFUSE I (465) I2S: DMA Malloc info, datalen=blocksize=1200, dma_buf_count=3 I (478) I2S: DMA Malloc info, datalen=blocksize=1200, dma_buf_count=3 I (568) wifi: Init dynamic tx buffer num: 32 I (568) wifi: Init data frame dynamic rx buffer num: 32 I (569) wifi: Init management frame dynamic rx buffer num: 32 I (570) I2S: APLL: Req RATE: 44100, real rate: 43945.238, BITS: 16, CLKM: 1, BCK_M: 8, MCLK: 11249981.000, SCLK: 1406247.625000, diva: 1, divb: 0 I (572) wifi: Init static tx buffer num: 16 I (586) AUDIO_PIPELINE: audio_pipeline_link:0x3f80775c, i2s, 0x3f808094 I (590) wifi: Init static rx buffer size: 1600 I (597) AUDIO_PIPELINE: audio_pipeline_link:0x3f807ec8, filter, 0x3f80a0e4 I (601) wifi: Init static rx buffer num: 10 I (610) AUDIO_ELEMENT: [i2s] Element task created I (612) wifi: Init dynamic rx buffer num: 32 filter AUDIO_ELEMENT: [filter] Element task created I (628) AUDIO_ELEMENT: [raw] Element task created I (633) AUDIO_PIPELINE: Func:audio_pipeline_run, Line:278, MEM Total:4298240 Bytes, Inter:188764 Bytes, Dram:155920 Bytes

 I (645) AUDIO_PIPELINE: Pipeline started I (649) DUEROS: Recorder has been created I (645) AUDIO_ELEMENT: [i2s] AEL_MSG_CMD_RESUME,state:1 W (655) REC_ENG: open rec_eng_2.wav failed,[293] filter I2S_STREAM: AUDIO_STREAM_READER,Rate:48000,ch:2 filter REC_ENG: ESP SR Engine, chunksize is 480锛? FRAME_SIZE:960, frequency:16000 filter REC_ENG: Recorder Engine Running ..., vad_window=9, wakeup=10000 ms, vad_off=800 ms, threshold=90 ms, sensitivity=0 filter REC_ENG: state idlefilter phy: phy_version: 4000, b6198fa, Sep 3 2018, 15:11:06, 0, 0  filter I2S: APLL: Req RATE: 48000, real rate: 47999.961, BITS: 16, CLKM: 1, BCK_M: 8, MCLK: 12287990.000, SCLK: 1535998.750000, diva: 1, divb: 0 I (703) wifi: mode : sta (24:0a:c4:9c:aa:48) filter AUDIO_ELEMENT: [filter] AEL_MSG_CMD_RESUME,state:1 I (725) RSP_FILTER: sample rate of source data : 48000, channel of source data : 2, sample rate of destination data : 16000, channel of destination data : 1 I (964) wifi: n:2 0, o:1 0, ap:255 255, sta:2 0, prof:1 I (1994) wifi: state: init -> auth (b0) I (2031) wifi: state: auth -> assoc (0) I (2078) wifi: state: assoc -> run (10) I (2205) wifi: connected with QJ_YJS, channel 2 I (2205) wifi: pm start, type: 1

I (3087) event: sta ip: 192.168.31.211, mask: 255.255.255.0, gw: 192.168.31.1 I (3088) DUEROS: PERIPH_WIFI_CONNECTED [455] E (3091) DUEROS: Recv Que DUER_CMD_LOGIN I (3095) DUEROS: duer_start, len:1470 {"configures":"{}","bindToken":"cd9d56b44793d4711fcdc3fc20115da3","coapPort":443,"token":"P4QyuJKudTgezMpcNdprZcrQijPTJMhB","serverAddr":"device.iot.baidu.com","lwm2mPort":443,"uuid":"18ec000000000e","rsaCaCrt":"-----BEGIN CERTIFICATE-----\nMIIDUDCCAjgCCQCmVPUErMYmCjANBgkqhkiG9w0BAQUFADBqMQswCQYDVQQGEwJD\nTjETMBEGA1UECAwKU29tZS1TdGF0ZTEOMAwGA1UECgwFYmFpZHUxGDAWBgNVBAMM\nDyouaW90LmJhaWR1LmNvbTEcMBoGCSqGSIb3DQEJARYNaW90QGJhaWR1LmNvbTAe\nFw0xNjAzMTEwMzMwNDlaFw0yNjAzMDkwMzMwNDlaMGoxCzAJBgNVBAYTAkNOMRMw\nEQYDVQQIDApTb21lLVN0YXRlMQ4wDAYDVQQKDAViYWlkdTEYMBYGA1UEAwwPKi5p\nb3QuYmFpZHUuY29tMRwwGgYJKoZIhvcNAQkBFg1pb3RAYmFpZHUuY29tMIIBIjAN\nBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAtbhIeiN7pznzuMwsLKQj2xB02+51\nOvCJ5d116ZFLjecp9qtllqOfN7bm+AJa5N2aAHJtsetcTHMitY4dtGmOpw4dlGqx\nluoz50kWJWQjVR+z6DLPnGE4uELOS8vbKHUoYPPQTT80eNVnl9S9h/l7DcjEAJYC\nIYJbf6+K9x+Ti9VRChvWcvgZQHMRym9j1g/7CKGMCIwkC+6ihkGD/XG40r7KRCyH\nbD53KnBjBO9FH4IL3rGlZWKWzMw3zC6RTS2ekfEsgAtYDvROKd4rNs+uDU9xaBLO\ndXTl5uxgudH2VnVzWtj09OUbBtXcQFD2IhmOl20BrckYul+HEIMR0oDibwIDAQAB\nMA0GCSqGSIb3DQEBBQUAA4IBAQCzTTH91jNh/uYBEFekSVNg1h1kPSujlwEDDf/W\npjqPJPqrZvW0w0cmYsYibNDy985JB87MJMfJVESG/v0Y/YbvcnRoi5gAenWXQNL4\nh2hf08A5wEQfLO/EaD1GTH3OIierKYZ6GItGrz4uFKHV5fTMiflABCdu37ALGjrA\nrIjwjxQG6WwLr9468hkKrWNG3dMBHKvmqO8x42sZOFRJMkqBbKzaBd1uW4xY5XwM\nS1QX56tVrgO0A3S+4dEg5uiLVN4YVP/Vqh4SMtYkL7ZZiZAxD9GtNnhRyFsWlC2r\nOVSdXs1ttZxEaEBGUl7tgsBte556BIvufZX+BXGyycVJdBu3\n-----END CERTIFICATE-----\n","macId":"","version":11662} I (3171,tid:3ffc04dc) lightduer_engine.c( 220):duer_engine_start, g_handler:3F806AC0, length:1470, profile:3F814714 I (3182,tid:3ffc04dc) lightduer_ca_conf.c( 38): duer_conf_get_string: uuid = 18ec000000000e I (3190,tid:3ffc04dc) lightduer_ca_conf.c( 38): duer_conf_get_string: serverAddr = device.iot.baidu.com I (3227,tid:3ffc04dc) baidu_ca_socket_adp.c( 134):DNS lookup succeeded. IP=111.206.37.215 I (3295,tid:3ffc04dc) lightduer_connagent.c( 198):will start latter(DUER_ERR_TRANS_WOULD_BLOCK) W (3295,tid:3ffc04dc) lightduer_events.c( 80):[lightduer_ca] <== event end = 400F0D98, timespent = 124 I (4939,tid:3ffc04dc) lightduer_connagent.c( 198):will start latter(DUER_ERR_TRANS_WOULD_BLOCK) W (4940,tid:3ffc04dc) lightduer_events.c( 80):[lightduer_ca] <== event end = 400F0F2C, timespent = 1600 I (4948,tid:3ffc04dc) lightduer_connagent.c( 198):will start latter(DUER_ERR_TRANS_WOULD_BLOCK) I (4956,tid:3ffc04dc) lightduer_connagent.c( 198):will start latter(DUER_ERR_TRANS_WOULD_BLOCK) I (4965,tid:3ffc04dc) lightduer_connagent.c( 198):will start latter(DUER_ERR_TRANS_WOULD_BLOCK) I (4974,tid:3ffc04dc) lightduer_connagent.c( 198):will start latter(DUER_ERR_TRANS_WOULD_BLOCK) I (4987,tid:3ffc04dc) lightduer_connagent.c( 198):will start latter(DUER_ERR_TRANS_WOULD_BLOCK) I (4994,tid:3ffc04dc) lightduer_connagent.c( 198):will start latter(DUER_ERR_TRANS_WOULD_BLOCK) I (5001,tid:3ffc04dc) lightduer_connagent.c( 198):will start latter(DUER_ERR_TRANS_WOULD_BLOCK) I (5007,tid:3ffc04dc) lightduer_engine.c( 220):duer_engine_start, g_handler:3F806AC0, length:0, profile:00000000 I (5017,tid:3ffc04dc) lightduer_connagent.c( 198):will start latter(DUER_ERR_TRANS_WOULD_BLOCK) W (5106,tid:3ffc04dc) lightduer_coap.c( 532):duer_coap_nsdl_tx: sent = 0 I (5107,tid:3ffc04dc) lightduer_connagent.c( 198):will start latter(DUER_ERR_TRANS_WOULD_BLOCK) I (5118,tid:3ffc04dc) lightduer_connagent.c( 198):will start latter(DUER_ERR_TRANS_WOULD_BLOCK) I (5119,tid:3ffc04dc) lightduer_connagent.c( 198):will start latter(DUER_ERR_TRANS_WOULD_BLOCK) I (5127,tid:3ffc04dc) lightduer_connagent.c( 198):will start latter(DUER_ERR_TRANS_WOULD_BLOCK) I (5136,tid:3ffc04dc) lightduer_connagent.c( 198):will start latter(DUER_ERR_TRANS_WOULD_BLOCK) I (5752,tid:3ffc04dc) lightduer_connagent.c( 177):connect started! I (5754,tid:3ffc04dc) lightduer_voice.c( 697):Mutex initializing I (5754,tid:3ffc04dc) lightduer_ds_log_cache.c( 67):no cache report E (5815) DUEROS: event: 0 I (5818) AUDIO_WRAPPER: duer_dcs_init W (5822) AUDIO_HAL: The hal has been already initialized! I (5830) AUDIO_HAL: Codec mode is 2, Ctrl:1

----------------------------- ESP Audio Platform ----------------------------- | | | ESP_AUDIO v1.0-rc1 | I (5846) ESP_AUDIO_TASK: media_ctrl_task running...,0x3f8149dc | Compile date: Dec 11 2018-18:23:42 |

I (5877) ESP_AUDIO_CTRL: Func:media_ctrl_create, Line:144, MEM Total:4193240 Bytes, Inter:155440 Bytes, Dram:122596 Bytes

 W (5890) I2S: I2S driver already installed W (5895) I2S: I2S driver already installed I (5899) STAGEFRIGHTMP3_DECODER: MP3 init I (5906) AUDIO_WRAPPER: Func:setup_player, Line:167, MEM Total:4180096 Bytes, Inter:145200 Bytes, Dram:112356 Bytes

 I (5915) AUDIO_WRAPPER: esp_audio instance is:0x3f8149dc I (5869,tid:3ffc04dc) lightduer_dcs_router.c( 283):namespace: ai.dueros.private.protocol I (5873,tid:3ffc04dc) lightduer_dcs_router.c( 283):namespace: ai.dueros.device_interface.screen_extended_card I (5887,tid:3ffc04dc) lightduer_dcs_router.c( 283):namespace: ai.dueros.device_interface.system I (5891,tid:3ffc04dc) lightduer_dcs_router.c( 283):namespace: ai.dueros.device_interface.voice_input I (5900,tid:3ffc04dc) lightduer_dcs_router.c( 283):namespace: ai.dueros.device_interface.voice_output I (5910,tid:3ffc04dc) lightduer_dcs_router.c( 283):namespace: ai.dueros.device_interface.speaker_controller I (5920,tid:3ffc04dc) lightduer_dcs_router.c( 283):namespace: ai.dueros.device_interface.audio_player I (5983) AUDIO_WRAPPER: duer_dcs_get_speaker_state E (5996) DUEROS: event: DUER_EVENT_STARTED I (5996) DUEROS: Dueros DUER_CMD_CONNECTED, duer_state:1 W (5941,tid:3ffc04dc) lightduer_events.c( 80):[lightduer_ca] <== event end = 400F0F2C, timespent = 196 I (5953,tid:3ffc04dc) lightduer_connagent.c( 212):add resource successfully!! I (5961,tid:3ffc04dc) lightduer_connagent.c( 212):add resource successfully!! W (5966,tid:3ffc04dc) lightduer_engine.c( 634):data cache has not sent, pending..., dcache_len:1, qcache_len:4 W (5982,tid:3ffc04dc) lightduer_system_info.c( 306):Undefined memory type, 0 E (5984,tid:3ffc04dc) lightduer_system_info.c( 389):Sys Info: Get disk info failed I (15557) DUEROS: PERIPH_NOTIFY_KEY_REC I (15557) REC_ENG: Recorder trigger start I (15584) REC_ENG: WAKEUP timer started I (15584) DUEROS: rec_engine_cb - REC_EVENT_WAKEUP_START I (15584) ESP_PERIPH: This peripheral has been added I (15642) DUEROS: rec_engine_cb - REC_EVENT_VAD_START I (15642) DUEROS: Recv Que DUER_CMD_START I (15647) AUDIO_WRAPPER: duer_dcs_get_speaker_state I (15599,tid:3ffc020c) lightduer_dcs_local.c( 188):Current dialog id: 18ec000000000e40b18ccf00003cec00000004 W (16629) REC_ENG: State VAD silence_time >= vad_off_window I (16630) ESP_PERIPH: This peripheral has been added I (16631) DUEROS: rec_engine_cb - REC_EVENT_VAD_STOP, state:3 I (16718) DUEROS: rec_engine_cb - REC_EVENT_VAD_START I (17077) DUEROS: Dueros DUER_CMD_STOP I (17118) DUEROS: Recv Que DUER_CMD_START I (17126) AUDIO_WRAPPER: duer_dcs_get_speaker_state I (17074,tid:3ffc020c) lightduer_dcs_local.c( 188):Current dialog id: 18ec000000000e47033129000042b200000006 I (17574,tid:3ffc04dc) lightduer_dcs_router.c( 702):Drop the directive for old dialog_Id: 18ec000000000e40b18ccf00003cec00000004, current dialog_Id: 18ec000000000e47033129000042b200000006 I (17618,tid:3ffc04dc) lightduer_dcs_router.c( 702):Drop the directive for old dialog_Id: 18ec000000000e40b18ccf00003cec00000004, current dialog_Id: 18ec000000000e47033129000042b200000006 W (18256) REC_ENG: State VAD silence_time >= vad_off_window I (18256) ESP_PERIPH: This peripheral has been added I (18257) DUEROS: rec_engine_cb - REC_EVENT_VAD_STOP, state:3 W (19061) REC_ENG: State VAD silence_time >= vad_off_window I (19245) DUEROS: Dueros DUER_CMD_STOP W (19860) REC_ENG: State VAD silence_time >= vad_off_window W (20685) REC_ENG: State VAD silence_time >= vad_off_window W (21485) REC_ENG: State VAD silence_time >= vad_off_window I (21720,tid:3ffc04dc) lightduer_dcs_router.c( 407):Directive name: StopListen I (21778) AUDIO_WRAPPER: stop_listen, close mic I (21779) REC_ENG: Recorder trigger stop E (21786) REC_ENG: State FETCH_DATA, wakeup_time_out:1, vad_speech_on:0, vad_time_mode:0 W (21792) REC_ENG: State WAKEUP_END I (21738,tid:3ffc04dc) lightduer_dcs_router.c( 407):Directive name: RenderVoiceInputText I (21796) ESP_PERIPH: This peripheral has been added I (21810) DUEROS: rec_engine_cb - REC_EVENT_WAKEUP_END E (21748,tid:3ffc04dc) lightduer_dcs_router.c( 433):unrecognized directive: RenderVoiceInputText, namespace: ai.dueros.device_interface.screen

I (21816) REC_ENG: state idle I (21829) AUDIO_WRAPPER: duer_dcs_get_speaker_state W (21799,tid:3ffc04dc) lightduer_events.c( 80):[lightduer_ca] <== event end = 400F0F2C, timespent = 70 I (21818,tid:3ffc04dc) lightduer_dcs_router.c( 407):Directive name: Speak I (21880) AUDIO_WRAPPER: Playing speak: http://res.iot.baidu.com:80/api/v1/tts/kGdbp_20teYI_1SiJ6OxWGA48verNYirruGvKzH5l1mYFZiXhjAdHSKlVdfgo701K8LUnecwEELLSSoMAzE6Vqa_QcJEnj31ARbXsVBwgY0.mp3 I (21891) ESP_AUDIO_CTRL: Func:media_ctrl_play, Line:301, MEM Total:4134992 Bytes, Inter:142860 Bytes, Dram:110016 Bytes

 field_set: 0xf, port: 80 field_data[0]: off: 0, len: 4, part: http field_data[1]: off: 7, len: 17, part: res.iot.baidu.com field_data[2]: off: 25, len: 2, part: 80 field_data[3]: off: 27, len: 123, part: /api/v1/tts/kGdbp_20teYI_1SiJ6OxWGA48verNYirruGvKzH5l1mYFZiXhjAdHSKlVdfgo701K8LUnecwEELLSSoMAzE6Vqa_QcJEnj31ARbXsVBwgY0.mp3 field_data[4]: unset field_data[5]: unset field_data[6]: unset I (21938) ESP_AUDIO_CTRL: Request_CMD_Queue CMD:0, Available:5 I (21945) ESP_AUDIO_TASK: It's a decoder.URI:http://res.iot.baidu.com:80/api/v1/tts/kGdbp_20teYI_1SiJ6OxWGA48verNYirruGvKzH5l1mYFZiXhjAdHSKlVdfgo701K8LUnecwEELLSSoMAzE6Vqa_QcJEnj31ARbXsVBwgY0.mp3

 I (21946) ESP_AUDIO_CTRL: Func:media_ctrl_play, Line:405, MEM Total:4136432 Bytes, Inter:144444 Bytes, Dram:111600 Bytes

 I (21963) ESP_AUDIO_TASK: 1.IN:[http],CODEC:[mp3],FILTER:[NULL],OUT:[iis],RESAMPLE:[48000] I (21984) ESP_AUDIO_TASK: 2.Handles,IN:0x3f814890,CODEC:0x3f81e8d4,FILTER:0x3f81f930,OUT:0x3f81e534 I (21993) ESP_AUDIO_TASK: 2.1 Update all pipelines I (22006) ESP_AUDIO_TASK: in_rb:0x3f81efb8,filter_rb:0x3f814b00,out_rb:0x3f81f0a8 I (22007) ESP_AUDIO_TASK: 3. Previous starting... I (22012) AUDIO_ELEMENT: [http] Element task created I (22017) AUDIO_ELEMENT: [mp3] Element task created I (22022) AUDIO_ELEMENT: [mp3] AEL_MSG_CMD_RESUME,state:1 I (22028) STAGEFRIGHTMP3_DECODER: MP3 opened I (22023) AUDIO_ELEMENT: [iis] Element task created I (22039) AUDIO_ELEMENT: [iis] AEL_MSG_CMD_RESUME,state:1 I (22045) I2S_STREAM: AUDIO_STREAM_WRITER I (22023) AUDIO_ELEMENT: [http] AEL_MSG_CMD_RESUME,state:1 I (22222) STAGEFRIGHTMP3_DECODER: I2S setup: sample_rate = 16000 : channels = 1 I (22223) RSP_FILTER: reset sample rate of source data : 16000, reset channel of source data : 1 I (22231) ESP_AUDIO_CTRL: Request_CMD_Queue CMD:1, Available:5 I (22236) ESP_AUDIO_TASK: Send MEDIA_CTRL_EVT_PLAY, line:521 I (22243) ESP_AUDIO_TASK: MEDIA_CTRL_EVT_PLAY, status:0 I (22248) AUDIO_ELEMENT: [resample] Element task created I (22254) AUDIO_PIPELINE: Func:audio_pipeline_run, Line:278, MEM Total:4041972 Bytes, Inter:115644 Bytes, Dram:82800 Bytes

 I (22268) AUDIO_ELEMENT: [resample] AEL_MSG_CMD_RESUME,state:1 I (22269) AUDIO_PIPELINE: Pipeline started I (22277) RSP_FILTER: sample rate of source data : 16000, channel of source data : 1, sample rate of destination data : 48000, channel of destination data : 2 W (22227,tid:3ffc04dc) lightduer_events.c( 80):[lightduer_ca] <== event end = 400F2970, timespent = 410 I (22301) AUDIO_WRAPPER: esp_auido status:1,err:0http lightduer_engine.c( 634):data cache has not sent, pending..., dcache_len:1, qcache_len:4 W (22579) HTTP_STREAM: No more data,errno:0 W (22580) HTTP_STREAM: there are no track I (22580) AUDIO_ELEMENT: IN-[http] AEL_IO_DONE,0 I (27890) AUDIO_ELEMENT: IN-[mp3] AEL_IO_DONE,-2 I (28972) STAGEFRIGHTMP3_DECODER: MP3 decodig done I (28973) STAGEFRIGHTMP3_DECODER: Closed I (29109) AUDIO_ELEMENT: IN-[resample] AEL_IO_DONE,-2 I (29112) RSP_FILTER: rsp_filter_close I (29140) AUDIO_ELEMENT: IN-[iis] AEL_IO_DONE,-2 I (29188) AUDIO_WRAPPER: esp_auido status:3,err:0 I (29134,tid:3ffc04dc) lightduer_dcs_router.c( 407):Directive name: Play I (29139,tid:3ffc04dc) lightduer_dcs_audio_player.c( 571):token: eyJib3RfaWQiOiJhdWRpb191bmljYXN0IiwicmVzdWx0X3Rva2VuIjoiMTZlYzYxYjBkNTIyZTE0MTAzN2FjOWFhYWVkZDZkYmIiLCJib3RfdG9rZW4iOiI4NTA5MDExOTE2MCJ9 I (29208) AUDIO_WRAPPER: Playing audio offset:0 url:http://od.qingting.fm/m4a/58a15b677cb8913976a532f2_6787295_24.m4a?from=dumi&logid=1545009020114-d8410e9c-ea26-4d69-890d-ccf4b7262b9c_2#1_0 E (29214) AUDIO_WRAPPER: duer_dcs_speech_on_finished,0 I (29226) ESP_AUDIO_CTRL: Func:media_ctrl_play, Line:301, MEM Total:4083304 Bytes, Inter:121072 Bytes, Dram:88228 Bytes

 field_set: 0x3b, port: 0 field_data[0]: off: 0, len: 4, part: http field_data[1]: off: 7, len: 14, part: od.qingting.fm field_data[2]: unset field_data[3]: off: 21, len: 44, part: /m4a/58a15b677cb8913976a532f2_6787295_24.m4a field_data[4]: off: 66, len: 68, part: from=dumi&logid=1545009020114-d8410e9c-ea26-4d69-890d-ccf4b7262b9c_2 field_data[5]: off: 135, len: 3, part: 1_0 field_data[6]: unset I (29279) ESP_AUDIO_CTRL: Request_CMD_Queue CMD:0, Available:5 I (29285) ESP_AUDIO_CTRL: Func:media_ctrl_play, Line:405, MEM Total:4081980 Bytes, Inter:119660 Bytes, Dram:86816 Bytes

 I (29286) ESP_AUDIO_TASK: It's a decoder.URI:http://od.qingting.fm/m4a/58a15b677cb8913976a532f2_6787295_24.m4a?from=dumi&logid=1545009020114-d8410e9c-ea26-4d69-890d-ccf4b7262b9c_2#1_0

 I (29314) ESP_AUDIO_TASK: 1.IN:[http],CODEC:[m4a],FILTER:[NULL],OUT:[iis],RESAMPLE:[48000] I (29323) ESP_AUDIO_TASK: 2.Handles,IN:0x3f814890,CODEC:0x3f81e9fc,FILTER:0x3f81f930,OUT:0x3f81e534 I (29333) ESP_AUDIO_TASK: 2.1 Update all pipelines W (29338) ESP_AUDIO_TASK: Destroy the old pipeline I (29345) AUDIO_PIPELINE: audio_pipeline_unlinked W (29349) AUDIO_PIPELINE: There are no listener registered I (29356) ESP_AUDIO_TASK: Func:media_ctrl_task, Line:314, MEM Total:4121160 Bytes, Inter:126764 Bytes, Dram:93920 Bytes

 I (29374) ESP_AUDIO_TASK: in_rb:0x3f81efb8,filter_rb:0x3f814b00,out_rb:0x3f81f1b0 I (29377) ESP_AUDIO_TASK: 3. Previous starting... I (29381) AUDIO_ELEMENT: [http] Element task created I (29387) AUDIO_ELEMENT: [http] AEL_MSG_CMD_RESUME,state:1 I (29401) AUDIO_ELEMENT: [m4a] Element task created I (29401) AUDIO_ELEMENT: [m4a] AEL_MSG_CMD_RESUME,state:1 I (29403) AUDIO_ELEMENT: [iis] Element task created I (29409) AUDIO_ELEMENT: [iis] AEL_MSG_CMD_RESUME,state:1 I (29415) I2S_STREAM: AUDIO_STREAM_WRITER I (29784) AAC_DECODER: new aduio song I (34205) AAC_DECODER: I2S setup: sample_rate = 44100 : channels = 2 I (34206) AAC_DECODER: M4A sampleRate = 44100, Channels = 2, frameSize = 2048 I (34207) RSP_FILTER: reset sample rate of source data : 44100, reset channel of source data : 2 I (34219) ESP_AUDIO_CTRL: Request_CMD_Queue CMD:1, Available:5 I (34225) ESP_AUDIO_TASK: Send MEDIA_CTRL_EVT_PLAY, line:521 I (34232) ESP_AUDIO_TASK: MEDIA_CTRL_EVT_PLAY, status:0 I (34240) AUDIO_ELEMENT: [resample] Element task created I (34245) AUDIO_PIPELINE: Func:audio_pipeline_run, Line:278, MEM Total:3949240 Bytes, Inter:115504 Bytes, Dram:82660 Bytes

 I (34257) AUDIO_ELEMENT: [resample] AEL_MSG_CMD_RESUME,state:1 I (34263) RSP_FILTER: sample rate of source data : 44100, channel of source data : 2, sample rate of destination data : 48000, channel of destination data : 2 I (34258) AUDIO_PIPELINE: Pipeline started W (34244,tid:3ffc04dc) lightduer_events.c( 80):[lightduer_ca] <== event end = 400F2970, timespent = 5109 I (34245,tid:3ffc04dc) lightduer_dcs_router.c( 407):Directive name: RenderHint E (34249,tid:3ffc04dc) lightduer_dcs_router.c( 433):unrecognized directive: RenderHint, namespace: ai.dueros.device_interface.screen

I (34319) AUDIO_WRAPPER: duer_dcs_get_speaker_state I (34325) AUDIO_WRAPPER: Get play position 213339 of 0 I (34293,tid:3ffc04dc) lightduer_dcs_router.c( 407):Directive name: DialogueFinished I (34390) AUDIO_WRAPPER: esp_auido status:1,err:0 I (64290) AUDIO_WRAPPER: Get play position 242546 of 0

cc1227858751 commented 5 years ago

@cc1227858751 你更新有使用如下步骤吗,“git pull, git submodule update”.都有操作的话,帮提供一下log。

这是播放速率不正常的log,确认是最新版的adf

ddummkopfer commented 5 years ago

适配 LyraTD 的 sdk,默认接受环境变量 IDF_PATH,而不是 ADF_PATH ,但是官网的教程却是设置 ADF_PATH。 另外,git clone了最新的adf下来之后,出现了dueros无法登陆的情况(board : LyraTD),请教大家

cc1227858751 commented 5 years ago

适配 LyraTD 的 sdk,默认接受环境变量 IDF_PATH,而不是 ADF_PATH ,但是官网的教程却是设置 ADF_PATH。 另外,git clone了最新的adf下来之后,出现了dueros无法登陆的情况(board : LyraTD),请教大家

ADF下的例程用的应该是ADF中自带的IDF,无法登陆的log贴出来大家看看么。

ddummkopfer commented 5 years ago

I (1473) DUEROS: PERIPH_NOTIFY_KEY_REC I (1295,tid:3ffc6994) lightduer_session.c( 44):random = 75933 E (1620) ES8388_DRIVER: es_write_reg error E (1621) ES8388_DRIVER: es_write_reg error E (1624) ES8388_DRIVER: es_write_reg error E (1629) ES8388_DRIVER: es_write_reg error E (1635) ES8388_DRIVER: es_write_reg error E (1638) ES8388_DRIVER: es_write_reg error E (1643) ES8388_DRIVER: es_write_reg error E (1648) ES8388_DRIVER: es_write_reg error E (1653) ES8388_DRIVER: es_write_reg error E (1658) ES8388_DRIVER: es_write_reg error E (1662) ES8388_DRIVER: es_write_reg error E (1667) ES8388_DRIVER: es_write_reg error E (1672) ES8388_DRIVER: es_write_reg error E (1677) ES8388_DRIVER: es_write_reg error E (1682) ES8388_DRIVER: es_write_reg error E (1686) ES8388_DRIVER: es_write_reg error E (1691) ES8388_DRIVER: es_write_reg error E (1696) ES8388_DRIVER: es_write_reg error I (1697) wifi: wifi driver task: 3ffbdd5c, prio:23, stack:3584, core=0 E (1701) ES8388_DRIVER: es_write_reg error I (1708) wifi: wifi firmware version: b2c9a19 E (1712) ES8388_DRIVER: es_write_reg error I (1716) wifi: config NVS flash: enabled E (1721) ES8388_DRIVER: es_write_reg error I (1725) wifi: config nano formating: disabled E (1729) ES8388_DRIVER: es_write_reg error I (1734) system_api: Base MAC address is not set, read default base MAC address from BLK0 of EFUSE E (1738) ES8388_DRIVER: es_write_reg error I (1748) system_api: Base MAC address is not set, read default base MAC address from BLK0 of EFUSE E (1753) ES8388_DRIVER: es_write_reg error E (1767) ES8388_DRIVER: es_write_reg error I (1771) gpio: GPIO[22]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0 I (1781) ES8388_DRIVER: init,out:02, in:00 I (1786) wifi: Init dynamic tx buffer num: 32 I (1789) wifi: Init data frame dynamic rx buffer num: 32 E (1786) ES8388_DRIVER: es_read_reg error I (1795) wifi: Init management frame dynamic rx buffer num: 32 E (1800) ES8388_DRIVER: es_write_reg error I (1806) wifi: Init static tx buffer num: 16 E (1810) ES8388_DRIVER: es_read_reg error I (1814) wifi: Init static rx buffer size: 1600 E (1818) ES8388_DRIVER: es_write_reg error I (1823) wifi: Init static rx buffer num: 10 E (1828) ES8388_DRIVER: es_read_reg error I (1832) wifi: Init dynamic rx buffer num: 32 E (1836) ES8388_DRIVER: es_write_reg error E (1845) ES8388_DRIVER: es_read_reg error W (1846) phy_init: failed to load RF calibration data (0x1102), falling back to full calibration E (1850) ES8388_DRIVER: es_write_reg error E (1864) ES8388_DRIVER: es_write_reg error E (1869) ES8388_DRIVER: es_write_reg error E (1873) ES8388_DRIVER: es_write_reg error E (1878) ES8388_DRIVER: es_write_reg error I (1883) AUDIO_HAL: Codec mode is 1, Ctrl:1 E (1888) ES8388_DRIVER: es_read_reg error E (1892) ES8388_DRIVER: es_write_reg error E (1897) ES8388_DRIVER: es_read_reg error E (1902) ES8388_DRIVER: es_write_reg error I (1907) I2S: DMA Malloc info, datalen=blocksize=1200, dma_buf_count=3 I (1914) I2S: DMA Malloc info, datalen=blocksize=1200, dma_buf_count=3 I (1923) I2S: APLL: Req RATE: 44100, real rate: 43945.238, BITS: 16, CLKM: 1, BCK_M: 8, MCLK: 11249981.000, SCLK: 1406247.625000, diva: 1, divb: 0 I (1936) AUDIO_PIPELINE: audio_pipeline_link:0x3f807e10, i2s, 0x3f808098 I (1942) AUDIO_PIPELINE: audio_pipeline_link:0x3f807ecc, filter, 0x3f80a0e8 I (1951) AUDIO_ELEMENT: [i2s] Element task created I (2050) phy: phy_version: 4000, b6198fa, Sep 3 2018, 15:11:06, 0, 2 I (2051) AUDIO_ELEMENT: [filter] Element task created I (2055) AUDIO_ELEMENT: [raw] Element task created I (2058) AUDIO_PIPELINE: Func:audio_pipeline_run, Line:278, MEM Total:4299464 Bytes, Inter:191024 Bytes, Dram:158136 Bytes

I (2058) wifi: mode : sta (30:ae:a4:c3:85:44) I (2071) AUDIO_ELEMENT: [i2s] AEL_MSG_CMD_RESUME,state:1 I (2070) AUDIO_PIPELINE: Pipeline started I (2084) DUEROS: Recorder has been created I (2080) I2S_STREAM: AUDIO_STREAM_READER,Rate:48000,ch:2 W (2090) REC_ENG: open rec_eng_2.wav failed,[293] I (2098) I2S: APLL: Req RATE: 48000, real rate: 47999.961, BITS: 16, CLKM: 1, BCK_M: 8, MCLK: 12287990.000, SCLK: 1535998.750000, diva: 1, divb: 0 I (2101) REC_ENG: ESP SR Engine, chunksize is 480��, FRAME_SIZE:960, frequency:16000 E (2123) REC_ENG: Recorder Engine Running ..., vad_window=9, wakeup=10000 ms, vad_off=800 ms, threshold=90 ms, sensitivity=0 I (2081) AUDIO_ELEMENT: [filter] AEL_MSG_CMD_RESUME,state:1 I (2135) REC_ENG: state idle I (2141) RSP_FILTER: sample rate of source data : 48000, channel of source data : 2, sample rate of destination data : 16000, channel of destination data1 I (2201) wifi: n:1 0, o:1 0, ap:255 255, sta:1 0, prof:1 I (3230) wifi: state: init -> auth (b0) I (3233) wifi: state: auth -> assoc (0) I (3238) wifi: state: assoc -> run (10) I (3279) wifi: connected with aiykittest, channel 1 I (3280) wifi: pm start, type: 1

I (9407) event: sta ip: 192.168.43.48, mask: 255.255.255.0, gw: 192.168.43.1 I (9409) DUEROS: PERIPH_WIFI_CONNECTED [456] E (9412) DUEROS: Recv Que DUER_CMD_LOGIN I (9415) DUEROS: duer_start, len:1

I (9095,tid:3ffc6994) lightduer_engine.c( 220):duer_engine_start, g_handler:3F807614, length:1, profile:3F8076CC E (9106,tid:3ffc6994) lightduer_ca.c( 645): create the configuation failed... I (9113,tid:3ffc6994) lightduer_ds_log_cache.c( 45):cached tracecode: 0x12010301 I (9120,tid:3ffc6994) lightduer_connagent.c( 160):=====> event: 1[DUER_EVT_START], status: -18 E (9127,tid:3ffc6994) lightduer_connagent.c( 207):start fail! status:-18 E (9134,tid:3ffc6994) lightduer_connagent.c( 286):Action failed: event: 1, status: -18 W (9141,tid:3ffc6994) lightduer_engine.c( 812):duer_engine_stop has stopped I (9148,tid:3ffc6994) lightduer_connagent.c( 160):=====> event: 5[DUER_EVT_STOP], status: -18 I (9156,tid:3ffc6994) lightduer_connagent.c( 257):connect stopped, status:-18!! E (9489) DUEROS: event: 1 E (9491) DUEROS: event: DUER_EVENT_STOPPED I (9497) DUEROS: Dueros DUER_CMD_QUIT reconnect, retry_num:2 W (9173,tid:3ffc6994) lightduer_events.c( 80):[lightduer_ca] <== event end = 400F0C98, timespent = 78 E (11504) DUEROS: Func:retry_login_timer_cb E (11504) DUEROS: Recv Que DUER_CMD_LOGIN I (11504) DUEROS: duer_start, len:1

I (11182,tid:3ffc6994) lightduer_engine.c( 220):duer_engine_start, g_handler:3F807614, length:1, profile:3F8076CC E (11192,tid:3ffc6994) lightduer_ca.c( 645): create the configuation failed... I (11199,tid:3ffc6994) lightduer_ds_log_cache.c( 45):cached tracecode: 0x12010301 I (11207,tid:3ffc6994) lightduer_connagent.c( 160):=====> event: 1[DUER_EVT_START], status: -18 E (11215,tid:3ffc6994) lightduer_connagent.c( 207):start fail! status:-18 E (11221,tid:3ffc6994) lightduer_connagent.c( 286):Action failed: event: 1, status: -18 W (11229,tid:3ffc6994) lightduer_engine.c( 812):duer_engine_stop has stopped I (11237,tid:3ffc6994) lightduer_connagent.c( 160):=====> event: 5[DUER_EVT_STOP], status: -18 I (11244,tid:3ffc6994) lightduer_connagent.c( 257):connect stopped, status:-18!! E (11577) DUEROS: event: 1 E (11580) DUEROS: event: DUER_EVENT_STOPPED

ddummkopfer commented 5 years ago

我用的板子: LyraTD MSC v2.2 image:最新ADF中example中的dueros例程 问题:duer无法登陆

cc1227858751 commented 5 years ago

我用的板子: LyraTD MSC v2.2 image:最新ADF中example中的dueros例程 问题:duer无法登陆

你用的圆形板子吧,我也试过这块圆形板子,这块板子应该是没法用dueros例程的,上面的8388寄存器写入失败,圆形板子上面用的codec不是8388,所以这个例程应该是不支持你那块板子的。

ddummkopfer commented 5 years ago

好的好的,确实是这样的,多谢,懂了 👍 🥇

ddummkopfer commented 5 years ago

哦对了,我发现这个圆板的唤醒速度和识别速度很快,url播放也很快,相比LyraT,效率极高,请问这是为什么,为什么圆板唤醒识别播放,一气呵成,效率惊人?

cc1227858751 commented 5 years ago

哦对了,我发现这个圆板的唤醒速度和识别速度很快,url播放也很快,相比LyraT,效率极高,请问这是为什么,为什么圆板唤醒识别播放,一气呵成,效率惊人?

你圆板里烧的是哪个程序

ddummkopfer commented 5 years ago

我原版是烧的 TDesp-audio-sdk-release-ver0.93.tar 这个文件里面编译生成的代码,目前在更换其配套的 DSP代码,使之适应我自己的DSP平台