alexa / avs-device-sdk

An SDK for commercial device makers to integrate Alexa directly into connected products.
https://developer.amazon.com/alexa/alexa-voice-service
Apache License 2.0
1.26k stars 604 forks source link

The SDK doesn't output audio #2064

Open novicefoamer opened 2 years ago

novicefoamer commented 2 years ago

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

Briefly summarize your issue:

The troubleshooting solution doesn't exist for SDK v3.0 version

What is the expected behavior?

The code needs to be replaced from in line 589, based on the Troubleshoot solution: m_pipeline.audioSink = gst_element_factory_make("autoaudiosink", "audio_sink"); to m_pipeline.audioSink = gst_element_factory_make("alsasink", "audio_sink"); present in avs-device-sdk/MediaPlayer/src in MediaPlayer.cpp

What behavior are you observing?

The code is different, even when I change the autoaudiosink to alsasink in the MediaPlayer.cpp present in ~/avs-device-sdk/MediaPlayer/GStreamerMediaPlayer/src. There is no audio output.

Provide the steps to reproduce the issue, if applicable:

gst-launch-1.0 -m audiotestsrc ! autoaudiosink. If you can't hear the ping. Try gst-launch-1.0 -m audiotestsrc ! alsasink

Tell us about your environment:

What version of the AVS Device SDK are you using?

  <3.0>

Tell us what hardware you're using:

Tell us about your OS (Type & version):

kclchan commented 1 year ago

@novicefoamer Please provide DEBUG9 logs.

novicefoamer commented 1 year ago

@novicefoamer Please provide DEBUG9 logs. output.log @kclchan : I have provided the DEBUG2 log