esp32-box开发板跑chatgpt_demo项目相关问题
esp32-box开发板跑chatgpt_demo项目相关问题
idf 版本5.1
1.烧录报错
日志如下:
正在执行任务: d:\espressif_vs\python_env\idf5.1_py3.11_env\Scripts\python.exe d:\espressif_vs\esp-idf\components\esptool_py\esptool\esptool.py -p COM24 -b 460800 --before default_reset --after hard_reset --chip esp32s3 write_flash --flash_mode dio --flash_freq 80m --flash_size 16MB 0x0 bootloader/bootloader.bin 0x700000 chatgpt_demo.bin 0x8000 partition_table/partition-table.bin 0xd000 ota_data_initial.bin 0xb00000 srmodels/srmodels.bin 0x900000 storage.bin
usage: esptool write_flash [-h] [--erase-all] [--flash_freq {keep,80m,60m,48m,40m,30m,26m,24m,20m,16m,15m,12m}] [--flash_mode {keep,qio,qout,dio,dout}]
[--flash_size {detect,keep,256KB,512KB,1MB,2MB,2MB-c1,4MB,4MB-c1,8MB,16MB,32MB,64MB,128MB}] [--spi-connection SPI_CONNECTION] [--no-progress]
[--verify] [--encrypt] [--encrypt-files <address> <filename> [<address> <filename> ...]] [--ignore-flash-encryption-efuse-setting] [--force]
[--compress | --no-compress]
<address> <filename> [<address> <filename> ...]
esptool write_flash: error: argument <address> <filename>: Detected overlap at address: 0x900000 for file: storage.bin
* 终端进程“d:\espressif_vs\python_env\idf5.1_py3.11_env\Scripts\python.exe 'd:\espressif_vs\esp-idf\components\esptool_py\esptool\esptool.py', '-p', 'COM24', '-b', '460800', '--before', 'default_reset', '--after', 'hard_reset', '--chip', 'esp32s3', 'write_flash', '--flash_mode', 'dio', '--flash_freq', '80m', '--flash_size', '16MB', '0x0', 'bootloader/bootloader.bin', '0x700000', 'chatgpt_demo.bin', '0x8000', 'partition_table/partition-table.bin', '0xd000', 'ota_data_initial.bin', '0xb00000', 'srmodels/srmodels.bin', '0x900000', 'storage.bin'”已终止,退出代码: 2。
2.通过官网固件烧录后,设置WiFi信息和ChatGPTkey后,连接WiFi:
日志如下:
SPIWP:0xee
mode:DIO, clock div:1
load:0x3fce3820,len:0x18a4
load:0x403c9700,len:0x4
load:0x403c9704,len:0xdac
load:0x403cc700,len:0x3188
entry 0x403c9938
I (27) boot: ESP-IDF v5.2-dev-1449-gd2471b11e7 2nd stage ESP-ROM:esp32s3-20210327
Build:Mar 27 2021
rst:0x15 (USB_UART_CHIP_RESET),boot:0x2b (SPI_FAST_FLASH_BOOT)
Saved PC:0x40041a76
SPIWP:0xee
mode:DIO, clock div:1
load:0x3fce3820,len:0x18a4
load:0x403c9700,len:0x4
load:0x403c9704,len:0xdac
load:0x403cc700,len:0x3188
entry 0x403c9938
I (27) boot: ESP-IDF v5.2-dev-1449-gd2471b11e7 2nd stage bootloader
I (27) boot: compile time Jul 12 2023 17:58:53
I (28) boot: Multicore bootloader
I (32) boot: chip revision: v0.1
I (35) qio_mode: Enabling default flash chip QIO
I (41) boot.esp32s3: Boot SPI Speed : 80MHz
I (45) boot.esp32s3: SPI Mode : QIO
I (50) boot.esp32s3: SPI Flash Size : 16MB
I (55) boot: Enabling RNG early entropy source...
I (60) boot: Partition Table:
I (64) boot: ## Label Usage Type ST Offset Length
I (71) boot: 0 nvs WiFi data 01 02 00009000 00004000
I (79) boot: 1 otadata OTA data 01 00 0000d000 00002000
I (86) boot: 2 phy_init RF data 01 01 0000f000 00001000
I (94) boot: 3 ota_0 OTA app 00 10 00010000 00600000
I (101) boot: 4 uf2 factory app 00 00 00700000 00200000
I (109) boot: 5 storage Unknown data 01 82 00900000 00200000
I (116) boot: 6 model Unknown data 01 82 00b00000 003e8000
I (124) boot: End of partition table
I (128) esp_image: segment 0: paddr=00010020 vaddr=3c120020 size=2323d4h (2302932) map
I (486) esp_image: segment 1: paddr=002423fc vaddr=3fc9bd00 size=07134h ( 28980) load
I (492) esp_image: segment 2: paddr=00249538 vaddr=40374000 size=06ae0h ( 27360) load
I (498) esp_image: segment 3: paddr=00250020 vaddr=42000020 size=118bb0h (1149872) map
I (674) esp_image: segment 4: paddr=00368bd8 vaddr=4037aae0 size=111cch ( 70092) load
I (699) boot: Loaded app from partition at offset 0x10000
I (699) boot: Disabling RNG early entropy source...
I (710) cpu_start: Multicore app
I (711) octal_psram: vendor id : 0x0d (AP)
I (711) octal_psram: dev id : 0x02 (generation 3)
I (714) octal_psram: density : 0x03 (64 Mbit)
I (719) octal_psram: good-die : 0x01 (Pass)
I (725) octal_psram: Latency : 0x01 (Fixed)
I (730) octal_psram: VCC : 0x01 (3V)
I (735) octal_psram: SRF : 0x01 (Fast Refresh)
I (741) octal_psram: BurstType : 0x01 (Hybrid Wrap)
I (747) octal_psram: BurstLen : 0x01 (32 Byte)
I (752) octal_psram: Readlatency : 0x02 (10 cycles@Fixed)
I (758) octal_psram: DriveStrength: 0x00 (1/1)
I (764) MSPI Timing: PSRAM timing tuning index: 5
I (769) esp_psram: Found 8MB PSRAM device
I (774) esp_psram: Speed: 80MHz
I (856) mmu_psram: Instructions copied and mapped to SPIRAM
I (856) cpu_start: Pro cpu up.
I (857) cpu_start: Starting app cpu, entry point is 0x40375724
I (0) cpu_start: App cpu up.
I (1106) esp_psram: SPI SRAM memory test OK
I (1115) cpu_start: Pro cpu start user code
I (1115) cpu_start: cpu freq: 240000000 Hz
I (1115) cpu_start: Application information:
I (1118) cpu_start: Project name: chatgpt_demo
I (1124) cpu_start: App version: v0.3.0-80-g8afb674-dirty
I (1130) cpu_start: Compile time: Jul 12 2023 17:58:45
I (1136) cpu_start: ELF file SHA256: da25f14cb...
I (1142) cpu_start: ESP-IDF: v5.2-dev-1449-gd2471b11e7
I (1148) cpu_start: Min chip rev: v0.0
I (1153) cpu_start: Max chip rev: v0.99
I (1158) cpu_start: Chip rev: v0.1
I (1163) heap_init: Initializing. RAM available for dynamic allocation:
I (1170) heap_init: At 3FCA8438 len 000412D8 (260 KiB): DRAM
I (1177) heap_init: At 3FCE9710 len 00005724 (21 KiB): STACK/DRAM
I (1183) heap_init: At 600FE010 len 00001FD8 (7 KiB): RTCRAM
I (1190) esp_psram: Adding pool of 7040K of PSRAM memory to heap allocator
I (1198) spi_flash: detected chip: gd
I (1202) spi_flash: flash io: qio
I (1206) sleep: Configure to isolate all GPIO pins in sleep state
I (1213) sleep: Enable automatic switching of GPIO sleep configuration
I (1220) app_start: Starting scheduler on CPU0
I (1225) app_start: Starting scheduler on CPU1
I (1225) main_task: Started on CPU0
I (1235) esp_psram: Reserving pool of 8K of internal memory for DMA/internal allocations
I (1243) main_task: Calling app_main()
I (1263) settings: stored ssid:lefu_xa2
I (1264) settings: stored password:xA202101
I (1264) settings: stored OpenAI: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
I (1396) ESP-BOX: Partition size: total: 1920401, used: 1038136
I (1397) LVGL: Starting LVGL task
I (1398) gpio: GPIO[4]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0
I (1406) gpio: GPIO[48]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0
I (1536) gpio: GPIO[3]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:2
I (1537) board: [+ Btn Init] ID
I (1538) button: IoT Button Version: 2.5.1
I (1543) gpio: GPIO[0]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0
I (1553) button: IoT Button Version: 2.5.1
I (1557) gpio: GPIO[1]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0
I (1567) button: IoT Button Version: 2.5.1
I (1571) board: [+ register] ID:1, event:0
I (1576) board: [+ register] ID:1, event:1
I (1582) gpio: GPIO[46]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0
I (1592) ES8311: Work in Slave mode
I (1596) gpio: GPIO[46]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0
I (1605) ES7210: Work in Slave mode
I (1611) ES7210: Enable ES7210_INPUT_MIC1
I (1614) ES7210: Enable ES7210_INPUT_MIC2
I (1620) I2S_IF: channel mode 0 bits:16/16 channel:2 mask:3
I (1624) I2S_IF: STD Mode 0 bits:16/16 channel:2 sample_rate:16000 mask:3
I (1631) I2S_IF: channel mode 0 bits:16/16 channel:2 mask:3
I (1638) I2S_IF: STD Mode 1 bits:16/16 channel:2 sample_rate:16000 mask:3
I (1645) ES7210: Bits 16
I (1651) ES7210: Enable ES7210_INPUT_MIC1
I (1654) ES7210: Enable ES7210_INPUT_MIC2
I (1660) ES7210: Unmuted
I (1661) Adev_Codec: Open codec device OK
I (1666) app_main: Display LVGL demo
I (1669) ESP-BOX: Setting LCD backlight: 100%
I (1702) app_main: speech recognition start
I (1702) MODEL_LOADER: The storage free size is 22272 KB
I (1703) MODEL_LOADER: The partition size is 4000 KB
I (1708) MODEL_LOADER: Successfully map model partition
I (1713) AFE_SR: afe interface for speech recognition
I (1719) AFE_SR: AFE version: SR_V220727
I (1724) AFE_SR: Initial auido front-end, total channel: 3, mic num: 2, ref num: 1
I (1732) AFE_SR: aec_init: 0, se_init: 1, vad_init: 1
I (1738) AFE_SR: wakenet_init: 1
I (1703) pp: pp rom version: e7ae62f
I (1747) net80211: net80211 rom version: e7ae62f
I (1755) wifi:wifi driver task: 3fcbf6c8, prio:23, stack:6656, core=0
I (1766) wifi:wifi firmware version: ccee958
I (1767) wifi:wifi certification version: v7.0
I (1767) wifi:config NVS flash: enabled
I (1770) wifi:config nano formating: disabled
I (1774) wifi:Init data frame dynamic rx buffer num: 32
I (1779) wifi:Init management frame dynamic rx buffer num: 32
I (1784) wifi:Init management short buffer num: 32
I (1789) wifi:Init static tx buffer num: 16
I (1793) wifi:Init tx cache buffer num: 32
I (1797) wifi:Init static tx FG buffer num: 2
I (1801) wifi:Init static rx buffer size: 1600
I (1805) wifi:Init static rx buffer num: 10
I (1809) wifi:Init dynamic rx buffer num: 32
I (1814) wifi_init: rx ba win: 6
I (1817) wifi_init: tcpip mbox: 32
I (1822) wifi_init: udp mbox: 6
I (1824) wifi_init: tcp mbox: 6
I (1828) wifi_init: tcp tx win: 5744
I (1833) wifi_init: tcp rx win: 5744
I (1837) wifi_init: tcp mss: 1440
I (1842) wifi_init: WiFi/LWIP prefer SPIRAM
I (1846) wifi_init: WiFi IRAM OP enabled
I (1850) wifi_init: WiFi RX IRAM OP enabled
I (1857) phy_init: phy_version 601,98f2a71,Jun 29 2023,09:58:12
I (1893) wifi:mode : sta (f4:12:fa:d7:f5:b8)
I (1893) wifi:enable tsf
I (1894) wifi station: start connect to the AP
I (1894) wifi station: wifi_init_sta finished.lefu_xa2, xA202101
I (2029) wifi station: NET_EVENT_POWERON_SCAN
MC Quantized wakenet9: wakeNet9_v1h24_hiesp_3_0.63_0.635, tigger:v3, mode:2, p:0, (Jul 7 2023 11:10:53)
I (2107) AFE_SR: wake num: 3, mode: 0, (Jul 7 2023 11:10:53)
I (2107) app_sr: Set language EN
I (2107) app_sr: load wakenet:wn9_hiesp
MC Quantized wakenet9: wakeNet9_v1h24_hiesp_3_0.63_0.635, tigger:v3, mode:2, p:0, (Jul 7 2023 11:10:53)
I (2140) AFE_SR: wakenet wn_frame_size = 512
I (2142) app_sr: Feed Task
I (2146) app_sr: audio_chunksize=1024, feed_channel=3
I (2152) app_sr: Detection task
sr handle task, mute:0
successfully created record_audio_buffer with a size: 256000
audio_rx_buffer with a size: 1048576
I (2321) file_iterator: File : input.wav
I (2323) file_iterator: File : echo_cn_end.wav
I (2335) file_iterator: File : echo_en_wake.wav
I (2338) file_iterator: File : echo_en_end.wav
I (2351) file_iterator: File : echo_cn_wake.wav
I (2356) file_iterator: File : Hi.wav
I (2375) file_iterator: File : echo_cn_ok.wav
I (2380) file_iterator: File : echo_en_ok.wav
I (2388) file_iterator: File : Hi.mp3
I (2397) file_iterator: File : waitPlease.mp3
W (2455) app_sr: AFE Fetch Fail
W (2755) app_sr: AFE Fetch Fail
W (3055) app_sr: AFE Fetch Fail
W (3355) app_sr: AFE Fetch Fail
W (3655) app_sr: AFE Fetch Fail
W (3955) app_sr: AFE Fetch Fail
W (4255) app_sr: AFE Fetch Fail
I (4532) wifi station: Total APs scanned = 15, ret:0
I (4532) wifi station: SSID lefu_xa2_Wi-Fi5
I (4533) wifi station: SSID lefu_xa2
I (4536) wifi station: SSID lefu_xa1
I (4540) wifi station: SSID lefu_xa1_Wi-Fi5
I (4545) wifi station: SSID DIRECT-6B-HP Laser 108w
I (4551) wifi station: SSID CU_ptrf
W (4555) app_sr: AFE Fetch Fail
I (4556) wifi station: SSID CU_4AZx
I (4564) wifi station: SSID SRH
I (4568) wifi station: SSID ZXXT
I (4572) wifi station: SSID TP-LINK_djgt
I (4577) wifi station: SSID TP-LINK_6993
I (4581) wifi station: SSID D-Link_DIR-629
I (4586) wifi station: SSID CU_YZZC
I (4591) wifi station: SSID GTMAP
I (4595) wifi station: SSID iewu123
I (4606) wifi<6,0>, old:<1,0>, ap:<255,255>, sta:<6,0>, prof:1
I (4606) wifi:state: init -> auth (b0)
W (4859) app_sr: AFE Fetch Fail
W (5159) app_sr: AFE Fetch Fail
W (5459) app_sr: AFE Fetch Fail
I (5609) wifi:state: auth -> init (200)
I (5609) wifi<6,0>, old:<6,0>, ap:<255,255>, sta:<6,0>, prof:1
I (5610) wifi station: sta disconnect, retry attempt 1...
W (5759) app_sr: AFE Fetch Fail
W (6059) app_sr: AFE Fetch Fail
W (6359) app_sr: AFE Fetch Fail
W (6659) app_sr: AFE Fetch Fail
W (6959) app_sr: AFE Fetch Fail
W (7259) app_sr: AFE Fetch Fail
W (7559) app_sr: AFE Fetch Fail
W (7859) app_sr: AFE Fetch Fail
I (8018) wifi station: sta disconnect, retry attempt 2...
I (8023) wifi<6,0>, old:<6,0>, ap:<255,255>, sta:<6,0>, prof:1
I (8024) wifi:state: init -> auth (b0)
W (8159) app_sr: AFE Fetch Fail
W (8459) app_sr: AFE Fetch Fail
W (8759) app_sr: AFE Fetch Fail
I (9025) wifi:state: auth -> init (200)
I (9028) wifi<6,0>, old:<6,0>, ap:<255,255>, sta:<6,0>, prof:1
I (9029) wifi station: sta disconnect, retry attempt 3...
W (9059) app_sr: AFE Fetch Fail
W (9359) app_sr: AFE Fetch Fail
W (9659) app_sr: AFE Fetch Fail
W (9959) app_sr: AFE Fetch Fail
W (10259) app_sr: AFE Fetch Fail
W (10559) app_sr: AFE Fetch Fail
W (10859) app_sr: AFE Fetch Fail
W (11159) app_sr: AFE Fetch Fail
I (11444) wifi station: sta disconnect, retry attempt 4...
I (11450) wifi<6,0>, old:<6,0>, ap:<255,255>, sta:<6,0>, prof:1
I (11450) wifi:state: init -> auth (b0)
W (11459) app_sr: AFE Fetch Fail
I (11469) wifi:state: auth -> assoc (0)
I (11488) wifi:state: assoc -> run (10)
I (11553) wifi:connected with lefu_xa2, aid = 1, channel 6, BW20, bssid = 64:23:15:2d:41:84
I (11553) wifi:security: WPA2-PSK, phy: bgn, rssi: -31
I (11557) wifi:pm start, type: 1
I (11558) wifi:set rx beacon pti, rx_bcn_pti: 0, bcn_timeout: 25000, mt_pti: 0, mt_time: 10000
I (11569) wifi:AP's beacon interval = 102400 us, DTIM period = 1
W (11759) app_sr: AFE Fetch Fail
W (12059) app_sr: AFE Fetch Fail
W (12359) app_sr: AFE Fetch Fail
I (12567) esp_netif_handlers: sta ip: 192.168.4.44, mask: 255.255.255.0, gw: 192.168.4.1
I (12568) wifi station: got ip:192.168.4.44
I (39436) ui-events: sr start once
I (39466) app_sr: AFE_FETCH_CHANNEL_VERIFIED, channel index: 2
I (39466) app_audio: ### record Start
I (39513) ui_ctrl: Swich to panel[1]
I (39533) app_audio: frame_rate= 16000, ch=2, width=16
I (39552) I2S_IF: channel mode 0 bits:16/16 channel:2 mask:3
I (39553) I2S_IF: STD Mode 1 bits:16/16 channel:2 sample_rate:16000 mask:3
I (39634) Adev_Codec: Open codec device OK
E (39634) i2s_common: i2s_channel_disable(1030): the channel has not been enabled yet
I (39636) I2S_IF: channel mode 0 bits:16/16 channel:2 mask:3
I (39643) I2S_IF: STD Mode 0 bits:16/16 channel:2 sample_rate:16000 mask:3
I (39652) ES7210: Bits 16
I (39656) ES7210: Enable ES7210_INPUT_MIC1
I (39659) ES7210: Enable ES7210_INPUT_MIC2
I (39666) ES7210: Unmuted
I (39666) Adev_Codec: Open codec device OK
W (39737) app_sr: silence, frame:16
audio play end, 32034, 31 K
W (42992) app_sr: vad Time out
I (42992) app_audio: ESP_MN_STATE_TIMEOUT
I (42993) app_audio: ### record Stop, 60357 58K
audio load end, 11988, 11 K
E (43085) app_audio: [Start] start_openai, timestamp: 43085
I (43086) OpenAI: OpenAI create, version: 0.1.1
I (43088) ui_ctrl: Swich to panel[2]
I (43099) I2S_IF: Pending out channel for in channel running
E (43117) i2s_common: i2s_channel_disable(1030): the channel has not been enabled yet
I (43117) I2S_IF: channel mode 0 bits:16/16 channel:2 mask:3
I (43121) I2S_IF: STD Mode 1 bits:16/16 channel:2 sample_rate:16000 mask:3
I (43204) Adev_Codec: Open codec device OK
E (43204) i2s_common: i2s_channel_disable(1030): the channel has not been enabled yet
I (43210) I2S_IF: channel mode 0 bits:16/16 channel:2 mask:3
I (43215) I2S_IF: STD Mode 0 bits:16/16 channel:2 sample_rate:16000 mask:3
I (43221) ES7210: Bits 16
I (43227) ES7210: Enable ES7210_INPUT_MIC1
I (43230) ES7210: Enable ES7210_INPUT_MIC2
I (43237) ES7210: Unmuted
I (43237) Adev_Codec: Open codec device OK
I (47164) app_main: replay audio end
E (61359) esp-tls: [sock=54] delayed connect error: Software caused connection abort
E (61360) esp-tls: Failed to open new connection
E (61362) transport_base: Failed to open a new connection
E (61368) HTTP_CLIENT: Connection failed, sock < 0
E (61373) OpenAI: ./managed_components/espressif__openai/OpenAI.c:2203 (OpenAI_Request):Failed to open client!
E (61384) OpenAI: ./managed_components/espressif__openai/OpenAI.c:1903 (OpenAI_AudioTranscriptionFile):Empty result!
I (61396) ui_ctrl: update listen speak
E (61400) app_audio: [End] start_openai, +offset:18315
I (96370) app_sr: wakeword detected
I (96370) app_audio: ### record Start
I (96371) ui_ctrl: Swich to panel[1]
I (96496) app_audio: frame_rate= 16000, ch=2, width=16
I (96499) I2S_IF: Pending out channel for in channel running
E (96517) i2s_common: i2s_channel_disable(1030): the channel has not been enabled yet
I (96520) I2S_IF: channel mode 0 bits:16/16 channel:2 mask:3
I (96522) I2S_IF: STD Mode 1 bits:16/16 channel:2 sample_rate:16000 mask:3
I (96545) app_sr: AFE_FETCH_CHANNEL_VERIFIED, channel index: 2
I (96610) Adev_Codec: Open codec device OK
E (96610) i2s_common: i2s_channel_disable(1030): the channel has not been enabled yet
I (96612) I2S_IF: channel mode 0 bits:16/16 channel:2 mask:3
I (96620) I2S_IF: STD Mode 0 bits:16/16 channel:2 sample_rate:16000 mask:3
I (96627) ES7210: Bits 16
I (96632) ES7210: Enable ES7210_INPUT_MIC1
I (96635) ES7210: Enable ES7210_INPUT_MIC2
I (96642) ES7210: Unmuted
I (96642) Adev_Codec: Open codec device OK
W (96714) app_sr: silence, frame:13
audio play end, 32034, 31 K
W (99968) app_sr: vad Time out
I (99968) app_audio: ESP_MN_STATE_TIMEOUT
I (99969) app_audio: ### record Stop, 62403 60K
audio load end, 11988, 11 K
E (100061) app_audio: [Start] start_openai, timestamp: 100061
I (100062) ui_ctrl: Swich to panel[2]
I (100073) I2S_IF: Pending out channel for in channel running
I (100075) wifi:<ba-add>idx:0 (ifx:0, 64:23:15:2d:41:84), tid:0, ssn:1, winSize:64
E (100092) i2s_common: i2s_channel_disable(1030): the channel has not been enabled yet
I (100095) I2S_IF: channel mode 0 bits:16/16 channel:2 mask:3
I (100099) I2S_IF: STD Mode 1 bits:16/16 channel:2 sample_rate:16000 mask:3
I (100192) Adev_Codec: Open codec device OK
E (100194) i2s_common: i2s_channel_disable(1030): the channel has not been enabled yet
I (100195) I2S_IF: channel mode 0 bits:16/16 channel:2 mask:3
I (100202) I2S_IF: STD Mode 0 bits:16/16 channel:2 sample_rate:16000 mask:3
I (100210) ES7210: Bits 16
I (100215) ES7210: Enable ES7210_INPUT_MIC1
I (100218) ES7210: Enable ES7210_INPUT_MIC2
I (100225) ES7210: Unmuted
I (100225) Adev_Codec: Open codec device OK
I (104158) app_main: replay audio end
I (107534) app_sr: wakeword detected
I (107728) app_sr: AFE_FETCH_CHANNEL_VERIFIED, channel index: 0
W (110916) app_sr: vad Time out
E (118582) esp-tls: [sock=54] delayed connect error: Software caused connection abort
E (118583) esp-tls: Failed to open new connection
E (118586) transport_base: Failed to open a new connection
E (118592) HTTP_CLIENT: Connection failed, sock < 0
E (118598) OpenAI: ./managed_components/espressif__openai/OpenAI.c:2203 (OpenAI_Request):Failed to open client!
E (118608) OpenAI: ./managed_components/espressif__openai/OpenAI.c:1903 (OpenAI_AudioTranscriptionFile):Empty result!
I (118619) ui_ctrl: update listen speak
E (118623) app_audio: [End] start_openai, +offset:18562
I (118629) app_audio: ### record Start
I (118638) ui_ctrl: Swich to panel[1]
I (118759) app_audio: frame_rate= 16000, ch=2, width=16
I (118761) I2S_IF: Pending out channel for in channel running
E (118766) i2s_common: i2s_channel_disable(1030): the channel has not been enabled yet
I (118770) I2S_IF: channel mode 0 bits:16/16 channel:2 mask:3
I (118777) I2S_IF: STD Mode 1 bits:16/16 channel:2 sample_rate:16000 mask:3
I (118865) Adev_Codec: Open codec device OK
E (118865) i2s_common: i2s_channel_disable(1030): the channel has not been enabled yet
I (118868) I2S_IF: channel mode 0 bits:16/16 channel:2 mask:3
I (118875) I2S_IF: STD Mode 0 bits:16/16 channel:2 sample_rate:16000 mask:3
I (118882) ES7210: Bits 16
I (118888) ES7210: Enable ES7210_INPUT_MIC1
I (118891) ES7210: Enable ES7210_INPUT_MIC2
I (118897) ES7210: Unmuted
I (118898) Adev_Codec: Open codec device OK
audio play end, 32034, 31 K
I (119833) app_audio: ESP_MN_STATE_TIMEOUT
I (119834) app_audio: ### record Stop, 22506 21K
audio load end, 11988, 11 K
E (119942) app_audio: [Start] start_openai, timestamp: 119942
I (119946) ui_ctrl: Swich to panel[2]
I (119952) I2S_IF: Pending out channel for in channel running
E (119963) i2s_common: i2s_channel_disable(1030): the channel has not been enabled yet
I (119963) I2S_IF: channel mode 0 bits:16/16 channel:2 mask:3
I (119970) I2S_IF: STD Mode 1 bits:16/16 channel:2 sample_rate:16000 mask:3
I (120054) Adev_Codec: Open codec device OK
E (120055) i2s_common: i2s_channel_disable(1030): the channel has not been enabled yet
I (120057) I2S_IF: channel mode 0 bits:16/16 channel:2 mask:3
I (120064) I2S_IF: STD Mode 0 bits:16/16 channel:2 sample_rate:16000 mask:3
I (120072) ES7210: Bits 16
I (120077) ES7210: Enable ES7210_INPUT_MIC1
I (120081) ES7210: Enable ES7210_INPUT_MIC2
I (120087) ES7210: Unmuted
I (120088) Adev_Codec: Open codec device OK
I (124011) app_main: replay audio end
E (138455) esp-tls: [sock=54] delayed connect error: Software caused connection abort
E (138456) esp-tls: Failed to open new connection
E (138457) transport_base: Failed to open a new connection
E (138464) HTTP_CLIENT: Connection failed, sock < 0
E (138469) OpenAI: ./managed_components/espressif__openai/OpenAI.c:2203 (OpenAI_Request):Failed to open client!
E (138481) OpenAI: ./managed_components/espressif__openai/OpenAI.c:1903 (OpenAI_AudioTranscriptionFile):Empty result!
I (138492) ui_ctrl: update listen speak
E (138496) app_audio: [End] start_openai, +offset:18554
UI界面显示API Key is not valid ;key 无效是指chatgpt的key 无效吗?换了好几个key也是同样的显示
1.烧录报错
日志如下:
正在执行任务: d:\espressif_vs\python_env\idf5.1_py3.11_env\Scripts\python.exe d:\espressif_vs\esp-idf\components\esptool_py\esptool\esptool.py -p COM24 -b 460800 --before default_reset --after hard_reset --chip esp32s3 write_flash --flash_mode dio --flash_freq 80m --flash_size 16MB 0x0 bootloader/bootloader.bin 0x700000 chatgpt_demo.bin 0x8000 partition_table/partition-table.bin 0xd000 ota_data_initial.bin 0xb00000 srmodels/srmodels.bin 0x900000 storage.bin
usage: esptool write_flash [-h] [--erase-all] [--flash_freq {keep,80m,60m,48m,40m,30m,26m,24m,20m,16m,15m,12m}] [--flash_mode {keep,qio,qout,dio,dout}]
[--flash_size {detect,keep,256KB,512KB,1MB,2MB,2MB-c1,4MB,4MB-c1,8MB,16MB,32MB,64MB,128MB}] [--spi-connection SPI_CONNECTION] [--no-progress]
[--verify] [--encrypt] [--encrypt-files <address> <filename> [<address> <filename> ...]] [--ignore-flash-encryption-efuse-setting] [--force]
[--compress | --no-compress]
<address> <filename> [<address> <filename> ...]
esptool write_flash: error: argument <address> <filename>: Detected overlap at address: 0x900000 for file: storage.bin
* 终端进程“d:\espressif_vs\python_env\idf5.1_py3.11_env\Scripts\python.exe 'd:\espressif_vs\esp-idf\components\esptool_py\esptool\esptool.py', '-p', 'COM24', '-b', '460800', '--before', 'default_reset', '--after', 'hard_reset', '--chip', 'esp32s3', 'write_flash', '--flash_mode', 'dio', '--flash_freq', '80m', '--flash_size', '16MB', '0x0', 'bootloader/bootloader.bin', '0x700000', 'chatgpt_demo.bin', '0x8000', 'partition_table/partition-table.bin', '0xd000', 'ota_data_initial.bin', '0xb00000', 'srmodels/srmodels.bin', '0x900000', 'storage.bin'”已终止,退出代码: 2。
2.通过官网固件烧录后,设置WiFi信息和ChatGPTkey后,连接WiFi:
日志如下:
SPIWP:0xee
mode:DIO, clock div:1
load:0x3fce3820,len:0x18a4
load:0x403c9700,len:0x4
load:0x403c9704,len:0xdac
load:0x403cc700,len:0x3188
entry 0x403c9938
I (27) boot: ESP-IDF v5.2-dev-1449-gd2471b11e7 2nd stage ESP-ROM:esp32s3-20210327
Build:Mar 27 2021
rst:0x15 (USB_UART_CHIP_RESET),boot:0x2b (SPI_FAST_FLASH_BOOT)
Saved PC:0x40041a76
SPIWP:0xee
mode:DIO, clock div:1
load:0x3fce3820,len:0x18a4
load:0x403c9700,len:0x4
load:0x403c9704,len:0xdac
load:0x403cc700,len:0x3188
entry 0x403c9938
I (27) boot: ESP-IDF v5.2-dev-1449-gd2471b11e7 2nd stage bootloader
I (27) boot: compile time Jul 12 2023 17:58:53
I (28) boot: Multicore bootloader
I (32) boot: chip revision: v0.1
I (35) qio_mode: Enabling default flash chip QIO
I (41) boot.esp32s3: Boot SPI Speed : 80MHz
I (45) boot.esp32s3: SPI Mode : QIO
I (50) boot.esp32s3: SPI Flash Size : 16MB
I (55) boot: Enabling RNG early entropy source...
I (60) boot: Partition Table:
I (64) boot: ## Label Usage Type ST Offset Length
I (71) boot: 0 nvs WiFi data 01 02 00009000 00004000
I (79) boot: 1 otadata OTA data 01 00 0000d000 00002000
I (86) boot: 2 phy_init RF data 01 01 0000f000 00001000
I (94) boot: 3 ota_0 OTA app 00 10 00010000 00600000
I (101) boot: 4 uf2 factory app 00 00 00700000 00200000
I (109) boot: 5 storage Unknown data 01 82 00900000 00200000
I (116) boot: 6 model Unknown data 01 82 00b00000 003e8000
I (124) boot: End of partition table
I (128) esp_image: segment 0: paddr=00010020 vaddr=3c120020 size=2323d4h (2302932) map
I (486) esp_image: segment 1: paddr=002423fc vaddr=3fc9bd00 size=07134h ( 28980) load
I (492) esp_image: segment 2: paddr=00249538 vaddr=40374000 size=06ae0h ( 27360) load
I (498) esp_image: segment 3: paddr=00250020 vaddr=42000020 size=118bb0h (1149872) map
I (674) esp_image: segment 4: paddr=00368bd8 vaddr=4037aae0 size=111cch ( 70092) load
I (699) boot: Loaded app from partition at offset 0x10000
I (699) boot: Disabling RNG early entropy source...
I (710) cpu_start: Multicore app
I (711) octal_psram: vendor id : 0x0d (AP)
I (711) octal_psram: dev id : 0x02 (generation 3)
I (714) octal_psram: density : 0x03 (64 Mbit)
I (719) octal_psram: good-die : 0x01 (Pass)
I (725) octal_psram: Latency : 0x01 (Fixed)
I (730) octal_psram: VCC : 0x01 (3V)
I (735) octal_psram: SRF : 0x01 (Fast Refresh)
I (741) octal_psram: BurstType : 0x01 (Hybrid Wrap)
I (747) octal_psram: BurstLen : 0x01 (32 Byte)
I (752) octal_psram: Readlatency : 0x02 (10 cycles@Fixed)
I (758) octal_psram: DriveStrength: 0x00 (1/1)
I (764) MSPI Timing: PSRAM timing tuning index: 5
I (769) esp_psram: Found 8MB PSRAM device
I (774) esp_psram: Speed: 80MHz
I (856) mmu_psram: Instructions copied and mapped to SPIRAM
I (856) cpu_start: Pro cpu up.
I (857) cpu_start: Starting app cpu, entry point is 0x40375724
I (0) cpu_start: App cpu up.
I (1106) esp_psram: SPI SRAM memory test OK
I (1115) cpu_start: Pro cpu start user code
I (1115) cpu_start: cpu freq: 240000000 Hz
I (1115) cpu_start: Application information:
I (1118) cpu_start: Project name: chatgpt_demo
I (1124) cpu_start: App version: v0.3.0-80-g8afb674-dirty
I (1130) cpu_start: Compile time: Jul 12 2023 17:58:45
I (1136) cpu_start: ELF file SHA256: da25f14cb...
I (1142) cpu_start: ESP-IDF: v5.2-dev-1449-gd2471b11e7
I (1148) cpu_start: Min chip rev: v0.0
I (1153) cpu_start: Max chip rev: v0.99
I (1158) cpu_start: Chip rev: v0.1
I (1163) heap_init: Initializing. RAM available for dynamic allocation:
I (1170) heap_init: At 3FCA8438 len 000412D8 (260 KiB): DRAM
I (1177) heap_init: At 3FCE9710 len 00005724 (21 KiB): STACK/DRAM
I (1183) heap_init: At 600FE010 len 00001FD8 (7 KiB): RTCRAM
I (1190) esp_psram: Adding pool of 7040K of PSRAM memory to heap allocator
I (1198) spi_flash: detected chip: gd
I (1202) spi_flash: flash io: qio
I (1206) sleep: Configure to isolate all GPIO pins in sleep state
I (1213) sleep: Enable automatic switching of GPIO sleep configuration
I (1220) app_start: Starting scheduler on CPU0
I (1225) app_start: Starting scheduler on CPU1
I (1225) main_task: Started on CPU0
I (1235) esp_psram: Reserving pool of 8K of internal memory for DMA/internal allocations
I (1243) main_task: Calling app_main()
I (1263) settings: stored ssid:lefu_xa2
I (1264) settings: stored password:xA202101
I (1264) settings: stored OpenAI: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
I (1396) ESP-BOX: Partition size: total: 1920401, used: 1038136
I (1397) LVGL: Starting LVGL task
I (1398) gpio: GPIO[4]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0
I (1406) gpio: GPIO[48]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0
I (1536) gpio: GPIO[3]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:2
I (1537) board: [+ Btn Init] ID
I (1538) button: IoT Button Version: 2.5.1
I (1543) gpio: GPIO[0]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0
I (1553) button: IoT Button Version: 2.5.1
I (1557) gpio: GPIO[1]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0
I (1567) button: IoT Button Version: 2.5.1
I (1571) board: [+ register] ID:1, event:0
I (1576) board: [+ register] ID:1, event:1
I (1582) gpio: GPIO[46]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0
I (1592) ES8311: Work in Slave mode
I (1596) gpio: GPIO[46]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0
I (1605) ES7210: Work in Slave mode
I (1611) ES7210: Enable ES7210_INPUT_MIC1
I (1614) ES7210: Enable ES7210_INPUT_MIC2
I (1620) I2S_IF: channel mode 0 bits:16/16 channel:2 mask:3
I (1624) I2S_IF: STD Mode 0 bits:16/16 channel:2 sample_rate:16000 mask:3
I (1631) I2S_IF: channel mode 0 bits:16/16 channel:2 mask:3
I (1638) I2S_IF: STD Mode 1 bits:16/16 channel:2 sample_rate:16000 mask:3
I (1645) ES7210: Bits 16
I (1651) ES7210: Enable ES7210_INPUT_MIC1
I (1654) ES7210: Enable ES7210_INPUT_MIC2
I (1660) ES7210: Unmuted
I (1661) Adev_Codec: Open codec device OK
I (1666) app_main: Display LVGL demo
I (1669) ESP-BOX: Setting LCD backlight: 100%
I (1702) app_main: speech recognition start
I (1702) MODEL_LOADER: The storage free size is 22272 KB
I (1703) MODEL_LOADER: The partition size is 4000 KB
I (1708) MODEL_LOADER: Successfully map model partition
I (1713) AFE_SR: afe interface for speech recognition
I (1719) AFE_SR: AFE version: SR_V220727
I (1724) AFE_SR: Initial auido front-end, total channel: 3, mic num: 2, ref num: 1
I (1732) AFE_SR: aec_init: 0, se_init: 1, vad_init: 1
I (1738) AFE_SR: wakenet_init: 1
I (1703) pp: pp rom version: e7ae62f
I (1747) net80211: net80211 rom version: e7ae62f
I (1755) wifi:wifi driver task: 3fcbf6c8, prio:23, stack:6656, core=0
I (1766) wifi:wifi firmware version: ccee958
I (1767) wifi:wifi certification version: v7.0
I (1767) wifi:config NVS flash: enabled
I (1770) wifi:config nano formating: disabled
I (1774) wifi:Init data frame dynamic rx buffer num: 32
I (1779) wifi:Init management frame dynamic rx buffer num: 32
I (1784) wifi:Init management short buffer num: 32
I (1789) wifi:Init static tx buffer num: 16
I (1793) wifi:Init tx cache buffer num: 32
I (1797) wifi:Init static tx FG buffer num: 2
I (1801) wifi:Init static rx buffer size: 1600
I (1805) wifi:Init static rx buffer num: 10
I (1809) wifi:Init dynamic rx buffer num: 32
I (1814) wifi_init: rx ba win: 6
I (1817) wifi_init: tcpip mbox: 32
I (1822) wifi_init: udp mbox: 6
I (1824) wifi_init: tcp mbox: 6
I (1828) wifi_init: tcp tx win: 5744
I (1833) wifi_init: tcp rx win: 5744
I (1837) wifi_init: tcp mss: 1440
I (1842) wifi_init: WiFi/LWIP prefer SPIRAM
I (1846) wifi_init: WiFi IRAM OP enabled
I (1850) wifi_init: WiFi RX IRAM OP enabled
I (1857) phy_init: phy_version 601,98f2a71,Jun 29 2023,09:58:12
I (1893) wifi:mode : sta (f4:12:fa:d7:f5:b8)
I (1893) wifi:enable tsf
I (1894) wifi station: start connect to the AP
I (1894) wifi station: wifi_init_sta finished.lefu_xa2, xA202101
I (2029) wifi station: NET_EVENT_POWERON_SCAN
MC Quantized wakenet9: wakeNet9_v1h24_hiesp_3_0.63_0.635, tigger:v3, mode:2, p:0, (Jul 7 2023 11:10:53)
I (2107) AFE_SR: wake num: 3, mode: 0, (Jul 7 2023 11:10:53)
I (2107) app_sr: Set language EN
I (2107) app_sr: load wakenet:wn9_hiesp
MC Quantized wakenet9: wakeNet9_v1h24_hiesp_3_0.63_0.635, tigger:v3, mode:2, p:0, (Jul 7 2023 11:10:53)
I (2140) AFE_SR: wakenet wn_frame_size = 512
I (2142) app_sr: Feed Task
I (2146) app_sr: audio_chunksize=1024, feed_channel=3
I (2152) app_sr: Detection task
sr handle task, mute:0
successfully created record_audio_buffer with a size: 256000
audio_rx_buffer with a size: 1048576
I (2321) file_iterator: File : input.wav
I (2323) file_iterator: File : echo_cn_end.wav
I (2335) file_iterator: File : echo_en_wake.wav
I (2338) file_iterator: File : echo_en_end.wav
I (2351) file_iterator: File : echo_cn_wake.wav
I (2356) file_iterator: File : Hi.wav
I (2375) file_iterator: File : echo_cn_ok.wav
I (2380) file_iterator: File : echo_en_ok.wav
I (2388) file_iterator: File : Hi.mp3
I (2397) file_iterator: File : waitPlease.mp3
W (2455) app_sr: AFE Fetch Fail
W (2755) app_sr: AFE Fetch Fail
W (3055) app_sr: AFE Fetch Fail
W (3355) app_sr: AFE Fetch Fail
W (3655) app_sr: AFE Fetch Fail
W (3955) app_sr: AFE Fetch Fail
W (4255) app_sr: AFE Fetch Fail
I (4532) wifi station: Total APs scanned = 15, ret:0
I (4532) wifi station: SSID lefu_xa2_Wi-Fi5
I (4533) wifi station: SSID lefu_xa2
I (4536) wifi station: SSID lefu_xa1
I (4540) wifi station: SSID lefu_xa1_Wi-Fi5
I (4545) wifi station: SSID DIRECT-6B-HP Laser 108w
I (4551) wifi station: SSID CU_ptrf
W (4555) app_sr: AFE Fetch Fail
I (4556) wifi station: SSID CU_4AZx
I (4564) wifi station: SSID SRH
I (4568) wifi station: SSID ZXXT
I (4572) wifi station: SSID TP-LINK_djgt
I (4577) wifi station: SSID TP-LINK_6993
I (4581) wifi station: SSID D-Link_DIR-629
I (4586) wifi station: SSID CU_YZZC
I (4591) wifi station: SSID GTMAP
I (4595) wifi station: SSID iewu123
I (4606) wifi<6,0>, old:<1,0>, ap:<255,255>, sta:<6,0>, prof:1
I (4606) wifi:state: init -> auth (b0)
W (4859) app_sr: AFE Fetch Fail
W (5159) app_sr: AFE Fetch Fail
W (5459) app_sr: AFE Fetch Fail
I (5609) wifi:state: auth -> init (200)
I (5609) wifi<6,0>, old:<6,0>, ap:<255,255>, sta:<6,0>, prof:1
I (5610) wifi station: sta disconnect, retry attempt 1...
W (5759) app_sr: AFE Fetch Fail
W (6059) app_sr: AFE Fetch Fail
W (6359) app_sr: AFE Fetch Fail
W (6659) app_sr: AFE Fetch Fail
W (6959) app_sr: AFE Fetch Fail
W (7259) app_sr: AFE Fetch Fail
W (7559) app_sr: AFE Fetch Fail
W (7859) app_sr: AFE Fetch Fail
I (8018) wifi station: sta disconnect, retry attempt 2...
I (8023) wifi<6,0>, old:<6,0>, ap:<255,255>, sta:<6,0>, prof:1
I (8024) wifi:state: init -> auth (b0)
W (8159) app_sr: AFE Fetch Fail
W (8459) app_sr: AFE Fetch Fail
W (8759) app_sr: AFE Fetch Fail
I (9025) wifi:state: auth -> init (200)
I (9028) wifi<6,0>, old:<6,0>, ap:<255,255>, sta:<6,0>, prof:1
I (9029) wifi station: sta disconnect, retry attempt 3...
W (9059) app_sr: AFE Fetch Fail
W (9359) app_sr: AFE Fetch Fail
W (9659) app_sr: AFE Fetch Fail
W (9959) app_sr: AFE Fetch Fail
W (10259) app_sr: AFE Fetch Fail
W (10559) app_sr: AFE Fetch Fail
W (10859) app_sr: AFE Fetch Fail
W (11159) app_sr: AFE Fetch Fail
I (11444) wifi station: sta disconnect, retry attempt 4...
I (11450) wifi<6,0>, old:<6,0>, ap:<255,255>, sta:<6,0>, prof:1
I (11450) wifi:state: init -> auth (b0)
W (11459) app_sr: AFE Fetch Fail
I (11469) wifi:state: auth -> assoc (0)
I (11488) wifi:state: assoc -> run (10)
I (11553) wifi:connected with lefu_xa2, aid = 1, channel 6, BW20, bssid = 64:23:15:2d:41:84
I (11553) wifi:security: WPA2-PSK, phy: bgn, rssi: -31
I (11557) wifi:pm start, type: 1
I (11558) wifi:set rx beacon pti, rx_bcn_pti: 0, bcn_timeout: 25000, mt_pti: 0, mt_time: 10000
I (11569) wifi:AP's beacon interval = 102400 us, DTIM period = 1
W (11759) app_sr: AFE Fetch Fail
W (12059) app_sr: AFE Fetch Fail
W (12359) app_sr: AFE Fetch Fail
I (12567) esp_netif_handlers: sta ip: 192.168.4.44, mask: 255.255.255.0, gw: 192.168.4.1
I (12568) wifi station: got ip:192.168.4.44
I (39436) ui-events: sr start once
I (39466) app_sr: AFE_FETCH_CHANNEL_VERIFIED, channel index: 2
I (39466) app_audio: ### record Start
I (39513) ui_ctrl: Swich to panel[1]
I (39533) app_audio: frame_rate= 16000, ch=2, width=16
I (39552) I2S_IF: channel mode 0 bits:16/16 channel:2 mask:3
I (39553) I2S_IF: STD Mode 1 bits:16/16 channel:2 sample_rate:16000 mask:3
I (39634) Adev_Codec: Open codec device OK
E (39634) i2s_common: i2s_channel_disable(1030): the channel has not been enabled yet
I (39636) I2S_IF: channel mode 0 bits:16/16 channel:2 mask:3
I (39643) I2S_IF: STD Mode 0 bits:16/16 channel:2 sample_rate:16000 mask:3
I (39652) ES7210: Bits 16
I (39656) ES7210: Enable ES7210_INPUT_MIC1
I (39659) ES7210: Enable ES7210_INPUT_MIC2
I (39666) ES7210: Unmuted
I (39666) Adev_Codec: Open codec device OK
W (39737) app_sr: silence, frame:16
audio play end, 32034, 31 K
W (42992) app_sr: vad Time out
I (42992) app_audio: ESP_MN_STATE_TIMEOUT
I (42993) app_audio: ### record Stop, 60357 58K
audio load end, 11988, 11 K
E (43085) app_audio: [Start] start_openai, timestamp: 43085
I (43086) OpenAI: OpenAI create, version: 0.1.1
I (43088) ui_ctrl: Swich to panel[2]
I (43099) I2S_IF: Pending out channel for in channel running
E (43117) i2s_common: i2s_channel_disable(1030): the channel has not been enabled yet
I (43117) I2S_IF: channel mode 0 bits:16/16 channel:2 mask:3
I (43121) I2S_IF: STD Mode 1 bits:16/16 channel:2 sample_rate:16000 mask:3
I (43204) Adev_Codec: Open codec device OK
E (43204) i2s_common: i2s_channel_disable(1030): the channel has not been enabled yet
I (43210) I2S_IF: channel mode 0 bits:16/16 channel:2 mask:3
I (43215) I2S_IF: STD Mode 0 bits:16/16 channel:2 sample_rate:16000 mask:3
I (43221) ES7210: Bits 16
I (43227) ES7210: Enable ES7210_INPUT_MIC1
I (43230) ES7210: Enable ES7210_INPUT_MIC2
I (43237) ES7210: Unmuted
I (43237) Adev_Codec: Open codec device OK
I (47164) app_main: replay audio end
E (61359) esp-tls: [sock=54] delayed connect error: Software caused connection abort
E (61360) esp-tls: Failed to open new connection
E (61362) transport_base: Failed to open a new connection
E (61368) HTTP_CLIENT: Connection failed, sock < 0
E (61373) OpenAI: ./managed_components/espressif__openai/OpenAI.c:2203 (OpenAI_Request):Failed to open client!
E (61384) OpenAI: ./managed_components/espressif__openai/OpenAI.c:1903 (OpenAI_AudioTranscriptionFile):Empty result!
I (61396) ui_ctrl: update listen speak
E (61400) app_audio: [End] start_openai, +offset:18315
I (96370) app_sr: wakeword detected
I (96370) app_audio: ### record Start
I (96371) ui_ctrl: Swich to panel[1]
I (96496) app_audio: frame_rate= 16000, ch=2, width=16
I (96499) I2S_IF: Pending out channel for in channel running
E (96517) i2s_common: i2s_channel_disable(1030): the channel has not been enabled yet
I (96520) I2S_IF: channel mode 0 bits:16/16 channel:2 mask:3
I (96522) I2S_IF: STD Mode 1 bits:16/16 channel:2 sample_rate:16000 mask:3
I (96545) app_sr: AFE_FETCH_CHANNEL_VERIFIED, channel index: 2
I (96610) Adev_Codec: Open codec device OK
E (96610) i2s_common: i2s_channel_disable(1030): the channel has not been enabled yet
I (96612) I2S_IF: channel mode 0 bits:16/16 channel:2 mask:3
I (96620) I2S_IF: STD Mode 0 bits:16/16 channel:2 sample_rate:16000 mask:3
I (96627) ES7210: Bits 16
I (96632) ES7210: Enable ES7210_INPUT_MIC1
I (96635) ES7210: Enable ES7210_INPUT_MIC2
I (96642) ES7210: Unmuted
I (96642) Adev_Codec: Open codec device OK
W (96714) app_sr: silence, frame:13
audio play end, 32034, 31 K
W (99968) app_sr: vad Time out
I (99968) app_audio: ESP_MN_STATE_TIMEOUT
I (99969) app_audio: ### record Stop, 62403 60K
audio load end, 11988, 11 K
E (100061) app_audio: [Start] start_openai, timestamp: 100061
I (100062) ui_ctrl: Swich to panel[2]
I (100073) I2S_IF: Pending out channel for in channel running
I (100075) wifi:<ba-add>idx:0 (ifx:0, 64:23:15:2d:41:84), tid:0, ssn:1, winSize:64
E (100092) i2s_common: i2s_channel_disable(1030): the channel has not been enabled yet
I (100095) I2S_IF: channel mode 0 bits:16/16 channel:2 mask:3
I (100099) I2S_IF: STD Mode 1 bits:16/16 channel:2 sample_rate:16000 mask:3
I (100192) Adev_Codec: Open codec device OK
E (100194) i2s_common: i2s_channel_disable(1030): the channel has not been enabled yet
I (100195) I2S_IF: channel mode 0 bits:16/16 channel:2 mask:3
I (100202) I2S_IF: STD Mode 0 bits:16/16 channel:2 sample_rate:16000 mask:3
I (100210) ES7210: Bits 16
I (100215) ES7210: Enable ES7210_INPUT_MIC1
I (100218) ES7210: Enable ES7210_INPUT_MIC2
I (100225) ES7210: Unmuted
I (100225) Adev_Codec: Open codec device OK
I (104158) app_main: replay audio end
I (107534) app_sr: wakeword detected
I (107728) app_sr: AFE_FETCH_CHANNEL_VERIFIED, channel index: 0
W (110916) app_sr: vad Time out
E (118582) esp-tls: [sock=54] delayed connect error: Software caused connection abort
E (118583) esp-tls: Failed to open new connection
E (118586) transport_base: Failed to open a new connection
E (118592) HTTP_CLIENT: Connection failed, sock < 0
E (118598) OpenAI: ./managed_components/espressif__openai/OpenAI.c:2203 (OpenAI_Request):Failed to open client!
E (118608) OpenAI: ./managed_components/espressif__openai/OpenAI.c:1903 (OpenAI_AudioTranscriptionFile):Empty result!
I (118619) ui_ctrl: update listen speak
E (118623) app_audio: [End] start_openai, +offset:18562
I (118629) app_audio: ### record Start
I (118638) ui_ctrl: Swich to panel[1]
I (118759) app_audio: frame_rate= 16000, ch=2, width=16
I (118761) I2S_IF: Pending out channel for in channel running
E (118766) i2s_common: i2s_channel_disable(1030): the channel has not been enabled yet
I (118770) I2S_IF: channel mode 0 bits:16/16 channel:2 mask:3
I (118777) I2S_IF: STD Mode 1 bits:16/16 channel:2 sample_rate:16000 mask:3
I (118865) Adev_Codec: Open codec device OK
E (118865) i2s_common: i2s_channel_disable(1030): the channel has not been enabled yet
I (118868) I2S_IF: channel mode 0 bits:16/16 channel:2 mask:3
I (118875) I2S_IF: STD Mode 0 bits:16/16 channel:2 sample_rate:16000 mask:3
I (118882) ES7210: Bits 16
I (118888) ES7210: Enable ES7210_INPUT_MIC1
I (118891) ES7210: Enable ES7210_INPUT_MIC2
I (118897) ES7210: Unmuted
I (118898) Adev_Codec: Open codec device OK
audio play end, 32034, 31 K
I (119833) app_audio: ESP_MN_STATE_TIMEOUT
I (119834) app_audio: ### record Stop, 22506 21K
audio load end, 11988, 11 K
E (119942) app_audio: [Start] start_openai, timestamp: 119942
I (119946) ui_ctrl: Swich to panel[2]
I (119952) I2S_IF: Pending out channel for in channel running
E (119963) i2s_common: i2s_channel_disable(1030): the channel has not been enabled yet
I (119963) I2S_IF: channel mode 0 bits:16/16 channel:2 mask:3
I (119970) I2S_IF: STD Mode 1 bits:16/16 channel:2 sample_rate:16000 mask:3
I (120054) Adev_Codec: Open codec device OK
E (120055) i2s_common: i2s_channel_disable(1030): the channel has not been enabled yet
I (120057) I2S_IF: channel mode 0 bits:16/16 channel:2 mask:3
I (120064) I2S_IF: STD Mode 0 bits:16/16 channel:2 sample_rate:16000 mask:3
I (120072) ES7210: Bits 16
I (120077) ES7210: Enable ES7210_INPUT_MIC1
I (120081) ES7210: Enable ES7210_INPUT_MIC2
I (120087) ES7210: Unmuted
I (120088) Adev_Codec: Open codec device OK
I (124011) app_main: replay audio end
E (138455) esp-tls: [sock=54] delayed connect error: Software caused connection abort
E (138456) esp-tls: Failed to open new connection
E (138457) transport_base: Failed to open a new connection
E (138464) HTTP_CLIENT: Connection failed, sock < 0
E (138469) OpenAI: ./managed_components/espressif__openai/OpenAI.c:2203 (OpenAI_Request):Failed to open client!
E (138481) OpenAI: ./managed_components/espressif__openai/OpenAI.c:1903 (OpenAI_AudioTranscriptionFile):Empty result!
I (138492) ui_ctrl: update listen speak
E (138496) app_audio: [End] start_openai, +offset:18554
UI界面显示API Key is not valid ;key 无效是指chatgpt的key 无效吗?换了好几个key也是同样的显示
-
- Posts: 156
- Joined: Tue Jul 11, 2023 6:55 am
Re: esp32-box开发板跑chatgpt_demo项目相关问题
你好,你需要使用付费的 ChatGPT API key 才可以使用。
- Attachments
-
- chatgpt.png (50.23 KiB) Viewed 45482 times
Re: esp32-box开发板跑chatgpt_demo项目相关问题
同样的问题,换了好几个API KEY确定是有效的。但运行时设备显示无效
-
- Posts: 156
- Joined: Tue Jul 11, 2023 6:55 am
Re: esp32-box开发板跑chatgpt_demo项目相关问题
请问你使用了哪些 API,可以提供日志吗?
-
- Posts: 8
- Joined: Sat Jul 08, 2023 12:38 pm
Re: esp32-box开发板跑chatgpt_demo项目相关问题
我是付费的,也是这个问题,并且有充值。
应该是baseurl的问题吧,解决了吗?是不是要设置代理的Create transcription
POST https://api.openai.com/v1/audio/transcriptions接口?谁有,谢谢。
应该是baseurl的问题吧,解决了吗?是不是要设置代理的Create transcription
POST https://api.openai.com/v1/audio/transcriptions接口?谁有,谢谢。
-
- Posts: 1
- Joined: Thu Dec 14, 2023 2:55 pm
Re: esp32-box开发板跑chatgpt_demo项目相关问题
你好,各位,我也是跑官方的chatgpt代码,但是wifi的账号和密码是在哪里设置的,我在配置文件里设置的烧录的时候还是显示的默认字符,求助啊!!!
Re: esp32-box开发板跑chatgpt_demo项目相关问题
在 demo 开始时,PC 端会检测到一个 U 盘,可以在 U 盘中的 CONFIG.INI 中配置 WIFI 以及 URL。
Who is online
Users browsing this forum: No registered users and 10 guests