How does AVS speech request fail from "wiced_audio_init"?

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Jin-HyungK_31
Employee
Employee
25 sign-ins 10 sign-ins 5 replies posted

While I test AVS in WICED Studio 5.01 using BCM943909WCD1, it fails to start speech request and logs "wiced_audio_init returns 4" as below message.

=============

IPv6 network ready IP: FE80:0000:0000:0000:02A0:50FF:FE7A:89B3

0003 00:00:09.161 Initialize audio PLAYBACK device: ak4954_dac

0004 00:00:09.167 Audio_client: enabling playback support

0005 00:00:09.174 Audio render thread begin

0006 00:00:09.177 Audio client thread begin

0007 00:00:09.181 Begin avs mainloop

0008 00:00:09.185 Connect to host: api.amazon.com, port 443, path /auth/o2/token

0009 00:00:09.192 Attemping DNS lookup for api.amazon.com

0010 00:00:09.347 Using IP address 54.239.29.146

0011 00:00:11.079 Attemping DNS lookup for avs-alexa-na.amazon.com

0012 00:00:11.311 Connecting to 54.239.26.171

0013 00:00:14.283 Establishing downchannel stream...

0014 00:00:14.288 Finished sending downchannel message...

0015 00:00:14.757 Received a header for stream 3, flags 0x04

0016 00:00:14.762 Stream 3 received a response status of 200

0017 00:00:14.768 Sending initial synchronize state...

0018 00:00:20.440 Received a header for stream 5, flags 0x05

0019 00:00:20.445 Stream 5 received a response status of 204

0020 00:00:20.451 Connection to AVS established

0021 00:00:30.347 Starting speech request...

0022 00:00:30.352 wiced_audio_init returns 4

0023 00:00:30.356 Unable to initialize/configure audio RX (4)

0024 00:00:30.361 Unable to start audio RX (4)

0025 00:00:30.365 wiced_audio_init returns 4

0026 00:00:30.369 Unable to initialize/configure audio RX (4)

0027 00:00:30.374 wiced_audio_init returns 4

0028 00:00:30.378 Unable to initialize/configure audio RX (4)

0029 00:00:30.384 wiced_audio_init returns 4

0030 00:00:30.388 Unable to initialize/configure audio RX (4)

0031 00:00:30.393 wiced_audio_init returns 4

0032 00:00:30.397 Unable to initialize/configure audio RX (4)

0033 00:00:30.402 wiced_audio_init returns 4

0034 00:00:30.406 Unable to initialize/configure audio RX (4)

=============

For triggering speech request, I push the button, SW4(PLAY/PAUSE).

What is the cause of this failure and how I can correct it?

0 Likes
1 Solution
RaktimR_11
Moderator
Moderator
Moderator
500 replies posted 250 replies posted 100 replies posted

Hi ykj,

Can you please let us know about your location? If you are based out of Europe, please change the AVS_BASE_URL to  https://avs-alexa-eu.amazon.com. Did you first try testing the audio_loopback demo? If you are getting the same error, you need to do a fresh installation of wiced sdk 5.1. You can try using the 'talk' command instead of speaking into the microphone. It should work and tell you some joke.

Regards,

Raktim

View solution in original post

2 Replies
RaktimR_11
Moderator
Moderator
Moderator
500 replies posted 250 replies posted 100 replies posted

Hi ykj,

Can you please let us know about your location? If you are based out of Europe, please change the AVS_BASE_URL to  https://avs-alexa-eu.amazon.com. Did you first try testing the audio_loopback demo? If you are getting the same error, you need to do a fresh installation of wiced sdk 5.1. You can try using the 'talk' command instead of speaking into the microphone. It should work and tell you some joke.

Regards,

Raktim

Hi Raktim,

After installing wiced sdk 5.1, initialze/configure fail has gone as well as work exactly as I expect.

thanks,

Jin