Skip to content
This repository has been archived by the owner on Jan 16, 2024. It is now read-only.

AVS did not respond after receiving any questions when the radio was playing. #402

Closed
2 tasks done
CarlosHua opened this issue Dec 20, 2017 · 7 comments
Closed
2 tasks done

Comments

@CarlosHua
Copy link

CarlosHua commented Dec 20, 2017

IMPORTANT: Before you create an issue, please take a look at our Issue Reporting Guide.

What version of the AVS Device SDK are you using?

  <1.3>

Briefly summarize your issue:

AVS did not respond after receiving any questions when the radio was playing.

What is the expected behavior?

Music should be paused and response the "what's time is it" request, then back to work on streaming the music.

What behavior are you observing?

Now AVS playing the streaming now, status as idle.
-- The status be changes as follows,
########################################
# Alexa is currently idle! #
########################################

"Alexa, What's time is it ?"
############################
# Listening... #
############################

  ############################
  #      Thinking...       #
  ############################

No any audio response for the request, then the radio starting back to work now.
AVS need to response the question in this time but it didn't.
###########################
# Speaking... #
###########################

########################################
#       Alexa is currently idle!       #
########################################

Provide the steps to reproduce the issue, if applicable:

  1. "Alexa, Play happy on iHeartRadio!"
    -- Now AVS starting streaming the music ..
  2. "Alexa, What's time is it ?"
    -- Music should be paused and response the "what's time is it" request, then back to work on streaming the music.

Tell us what hardware you're using:

  • Other - tell us more:
    Cross compile on embedded

Tell us about your OS (Type & version):

  • Linux

We have try AVS based on v1.0.1/v1.2.1/v1.3 versions, but all have the same issues, please help to check it. Thanks.

Log provide on here. Thanks.
avs-no-response.log

@kjkh
Copy link

kjkh commented Dec 21, 2017

Hi @CarlosHua,

We're not able to reproduce the problem, but the symptoms look similar to another issue we are tracking. I looked at server logs and AVS does correctly send the Speak directive. Your logs also indicate that the SpeechSynthesizer correctly receives and buffers the data, but before it gets a chance to play, receives and end of stream message from the pipeline and stops. Is this reproducible 100% of the time? Can you also try two things independently:

  1. Set sync = TRUE on MediaPlayer.cpp line 571:
    g_object_set(m_pipeline.audioSink, "sync", FALSE, NULL); =>
    g_object_set(m_pipeline.audioSink, "sync", TRUE, NULL);

  2. Increase SLEEP_AFTER_END_OF_AUDIO in MediaPlayer.cpp line 81.

@CarlosHua
Copy link
Author

Hi kjkh,

Thanks for your reply.
Yep, this issue could 100% reproducible on all release version(v1.1.0/v1.2.1/v1.3).
I have follow your recommend make necessary changes and test independently. but it still don't works.

My changes as follows,

  1. g_object_set(m_pipeline.audioSink, "sync", TRUE, NULL);
  2. SLEEP_AFTER_END_OF_AUDIO{300} => SLEEP_AFTER_END_OF_AUDIO{1000}.
    (even try increase value to 2000, still not works.)

I'm not sure what's the problems might cause this issue, have any recommends on it ? Thanks.

@kjkh
Copy link

kjkh commented Dec 22, 2017

Hi @CarlosHua,

Another thought, which version of GStreamer are you using?

@CarlosHua
Copy link
Author

Hi @kjkh,

We using the related packages as follows,
glib-2.50.3
glib-networking-2.54.1
gstreamer-1.12.2
gst-plugins-base-1.12.2
gst-libav-1.12.2
gst-plugins-good-1.12.2
gst-plugins-ugly-1.12.2
gst-plugins-bad-1.12.2

@CarlosHua
Copy link
Author

Hi @kjkh,

Continue to check the log, is it caused by follows ?
2017-12-20 09:01:31.306 [ 2] I InProcessAttachmentReader:readFailed:reason=SDS is closed\

Why AttachmentReader got readFailed at this moment ? Thanks

@mradulan
Copy link
Contributor

@CarlosHua , we are looking into the issue. Thanks

@kclchan
Copy link
Contributor

kclchan commented Jan 12, 2018

Closing issue.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants