pipeline_baidu_speech_mp3 ERROR

User avatar
bigiot
Posts: 7
Joined: Thu May 17, 2018 2:41 pm
Location: Beijing
Contact:

pipeline_baidu_speech_mp3 ERROR

Postby bigiot » Thu May 17, 2018 3:02 pm

When I try "pipeline_baidu_speech_mp3" example on ESP32-LyraT V4, get the following error message.
========================================
I (4090) event: sta ip: 192.168.0.20, mask: 255.255.255.0, gw: 1192.168.0.1
I (4090) BAIDU_SPEECH_EXAMPLE: [ 1 ] Start audio codec chip
I (4090) gpio: GPIO[19]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:3
I (4110) ES8388_DRIVER: init,out:02, in:00
I (4120) gpio: GPIO[21]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0
I (4120) AUDIO_HAL: Codec mode is 2, Ctrl:1
I (4130) BAIDU_SPEECH_EXAMPLE: [2.0] Create audio pipeline for playback
I (4130) BAIDU_SPEECH_EXAMPLE: [2.1] Create http stream to read data
I (4140) BAIDU_SPEECH_EXAMPLE: [2.2] Create i2s streamm to write data to codec chip
I (4150) I2S: DMA Malloc info, datalen=blocksize=1200, dma_buf_count=3
I (4150) I2S: DMA Malloc info, datalen=blocksize=1200, dma_buf_count=3
I (4160) I2S: APLL: Req RATE: 44100, real rate: 43945.016, BITS: 16, CLKM: 1, BCK: 8, MCLK: 11289966.924, SCLK: 1406240.500000, diva: 1, divb:
0
I (4170) BAIDU_SPEECH_EXAMPLE: [2.3] Create mp3 decoder to decode mp3 file
I (4180) MP3_DECODER: MP3 init
I (4180) BAIDU_SPEECH_EXAMPLE: [2.4] Register all elements to audio pipeline
I (4190) BAIDU_SPEECH_EXAMPLE: [2.5] Link it together http_stream-->mp3_decoder-->i2s_stream-->[codec_chip]
I (4200) BAIDU_SPEECH_EXAMPLE: [2.6]] Setup uri (http as http_stream, mp3 as mp3 decoder, and default output is i2s)
I (4210) BAIDU_SPEECH_EXAMPLE: [ 4 ] Setup event listener
I (4220) BAIDU_SPEECH_EXAMPLE: [4.1] Listening event from all elements of pipeline
I (4230) BAIDU_SPEECH_EXAMPLLE: [4.2] Listening event from peripherals
I (4240) BAIDU_SPEECH_EXAMPLE: [ 5 ] Start audio_pipeline
I (4240) AUDIO_ELEMENT: [http] Element task created
I (4250) AUDIO_ELEMENT: [mp3] Element task created
I (4250) AUDIO_ELEMENT: [i2s] Element task created
I (4260) AUDIO_PIPELINE: Func:audio_pipeline_run, Line:260, MEM Total:183760 Bytes

I (4270) AUDIO_ELEEMENT: [http] AEL_MSG_CMD_RESUME,state:1
I (4280) AUDIO_ELEMENT: [mp3] AEL_MSG_CMD_RESUME,state:1
I (4280) MP3_DECODER: MP3 opened
I (4280) AUDIO_ELEMENT: [i2s] AEL_MSG_CMD_RESUME,state:1
I (4290) I2S_STREAM: AUDIO_STREAM_WRITER
I (43000) AUDIO_PIPELINE: Pipeline started
I (4330) I2S: APLL: Req RATE: 16000, real rate: 15999.022, BITS: 16, CLKM: 1, BCK: 8, MCLK: 4096000.000, SCLK: 511968.718750, diva: 1, divb: 0

I (4330) AUDIO_ELEMENT: [i2s] AEL_MSG_CMD_RRESUME,state:3
I (4330) I2S_STREAM: AUDIO_STREAM_WRITER
I (4610) wifi: pm start, type:0

I (55580) BAIDU_AUTH: Access token=24.04eb348ef82ee85f805b91bd34a0349d.2592000.1529159134.xxxxxx-xxxxxxx
I (5730) HTTP_STREAM: Content-Type = appliccation/json
W (5740) HTTP_STREAM: No more data,errno:9
I (5740) AUDIO_ELEMENT: IN-[http] AEL_IO_DONE,0
I (5740) AUDIO_ELEMENT: IN-[mp3] AEL_IO_DONE,-2
Encountered error reading when MP3 init
E (5750) AUDIO_ELEMENT: [mp3] AEL_STATUS_ERROR_OPEN
I (5750) MP3_DECODER: Closed
E (5760) AUDIO_ELEMENT: [mp3] AEL_MSG_CMMD_ERROR

===============================================================
errorlog.JPG
errorlog.JPG (308.37 KiB) Viewed 8735 times
How can I address this issue?

thank you.

ESP_tuanpm
Posts: 14
Joined: Sat Dec 05, 2015 7:59 am

Re: pipeline_baidu_speech_mp3 ERROR

Postby ESP_tuanpm » Fri May 18, 2018 8:28 am

Hi

I think this problem because the access key is incorrect,
My access key and access secret like the attached picture
Attachments
WX20180518-152212@2x.png
WX20180518-152212@2x.png (34.37 KiB) Viewed 8720 times

User avatar
bigiot
Posts: 7
Joined: Thu May 17, 2018 2:41 pm
Location: Beijing
Contact:

Re: pipeline_baidu_speech_mp3 ERROR

Postby bigiot » Fri May 18, 2018 12:38 pm

tuanpm wrote:Hi

I think this problem because the access key is incorrect,
My access key and access secret like the attached picture
Thank you, I provided wrong AK and SK which has no right to use text2audio.

Who is online

Users browsing this forum: No registered users and 63 guests