Hi,请教一下
本人使用examplesrecorderpipeline_raw_http例程,想实现多次录音上传的操作,实际测试发现只有第一次按下REC键可以录音并上传http服务器,松开rec键后上传结束;第二次及以后按下rec键后,element自动abord, 各位有解决这个问题的吗?谢谢!
使用硬件 ESP32-LyraT-V4.3
ADF版本:App version: v2.3-228-g7b844d5-dirty
IDF版本:ESP-IDF: v4.1-beta2-141-g84b5178-dirty
log:
I (15211) REC_RAW_HTTP: [ 2 ] Start codec chip
E (15211) gpio: gpio_install_isr_service(438): GPIO isr service already installed
I (15231) REC_RAW_HTTP: [3.0] Create audio pipeline for recording
I (15231) REC_RAW_HTTP: [3.1] Create http stream to post data to server
I (15241) REC_RAW_HTTP: [3.2] Create i2s stream to read audio data from codec chip
I (15281) REC_RAW_HTTP: [3.3] Register all elements to audio pipeline
I (15281) REC_RAW_HTTP: [3.4] Link it together [codec_chip]-->i2s_stream->http_stream-->[http_server]
W (15311) PERIPH_TOUCH: _touch_init
I (15351) REC_RAW_HTTP: [ 4 ] Press [Rec] button to record, Press [Mode] to exit
I (26291) REC_RAW_HTTP: [ * ] [Rec] input key event, resuming pipeline ... //第一次录音上传ok
Total bytes written: 72704
Total bytes written: 73728
I (27481) REC_RAW_HTTP: [ + ] HTTP client HTTP_STREAM_POST_REQUEST, write end chunked marker
I (27531) REC_RAW_HTTP: [ + ] HTTP client HTTP_STREAM_FINISH_REQUEST
W (27551) HTTP_CLIENT: esp_transport_read returned:-1 and errno:128
W (27551) AUDIO_PIPELINE: Without stop, st:1
W (27551) AUDIO_PIPELINE: Without wait stop, st:1
I (56951) REC_RAW_HTTP: [ * ] [Rec] input key event, resuming pipeline ... //第二次
I (56951) REC_RAW_HTTP: [ + ] HTTP client HTTP_STREAM_PRE_REQUEST, lenght=0
W (56961) AUDIO_ELEMENT: OUT-[i2s] AEL_IO_ABORT
W (56961) AUDIO_ELEMENT: OUT-[i2s] AEL_IO_ABORT
W (56961) AUDIO_ELEMENT: OUT-[i2s] AEL_IO_ABORT
Total bytes written: 8192
W (57221) AUDIO_ELEMENT: IN-[http] AEL_IO_ABORT
I (57221) REC_RAW_HTTP: [ + ] HTTP client HTTP_STREAM_POST_REQUEST, write end chunked marker
I (57281) REC_RAW_HTTP: [ + ] HTTP client HTTP_STREAM_FINISH_REQUEST
W (57301) HTTP_CLIENT: esp_transport_read returned:-1 and errno:128
I (58461) REC_RAW_HTTP: [ * ] [Rec] key released, stop pipeline ...
E (58461) AUDIO_ELEMENT: [i2s] Element already stopped
E (58461) AUDIO_ELEMENT: [http] Element already stopped
W (58461) AUDIO_PIPELINE: Without stop, st:1
W (58471) AUDIO_PIPELINE: Without wait stop, st:1
I (77841) REC_RAW_HTTP: [ * ] [Rec] input key event, resuming pipeline ...
Total bytes written: 6144
W (77901) AUDIO_ELEMENT: IN-[http] AEL_IO_ABORT
I (77901) REC_RAW_HTTP: [ + ] HTTP client HTTP_STREAM_POST_REQUEST, write end chunked marker
I (78031) REC_RAW_HTTP: [ + ] HTTP client HTTP_STREAM_FINISH_REQUEST
W (78051) HTTP_CLIENT: esp_transport_read returned:-1 and errno:128
W (78051) AUDIO_ELEMENT: OUT-[i2s] AEL_IO_ABORT
W (78051) AUDIO_ELEMENT: OUT-[i2s] AEL_IO_ABORT
W (78051) AUDIO_ELEMENT: OUT-[i2s] AEL_IO_ABORT
W (78061) AUDIO_ELEMENT: OUT-[i2s] AEL_IO_ABORT
I (80291) REC_RAW_HTTP: [ * ] [Rec] key released, stop pipeline ...
E (80291) AUDIO_ELEMENT: [i2s] Element already stopped
E (80291) AUDIO_ELEMENT: [http] Element already stopped
W (80291) AUDIO_PIPELINE: Without stop, st:1
W (80301) AUDIO_PIPELINE: Without wait stop, st:1