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 602 forks source link

No playback sound #500

Closed pappy15 closed 6 years ago

pappy15 commented 6 years ago

Hi, I installed the avs device sdk 1.4 on raspberry pi 2 with raspbian stretch, one usb microphone and one usb sound card for playback. The startsample.sh works now and it recognizes the word commands. But there is no playback over usb sound card. If I record and play a .wav over arecord/aplay everything works fine.

/home/pi/.asoundrc looks like:

pcm.!default { type asym playback.pcm { type plug slave.pcm "hw:0,0" } capture.pcm { type plug slave.pcm "hw:1,0" } }

mradulan commented 6 years ago

can you check #484 and set your asoundrc according to that?

pappy15 commented 6 years ago

I checked this, but no matter what I write in /home/pi/.asoundrc, sample app uses always the 3.5mm jack of raspberry pi.

I already found a asound.conf in /home/pi/Desktop/third-party/alexa-rpi/config/, but choosing the right card there, the usb sound card doesn't work in the sample app too.

jguerreiro commented 6 years ago

I have been experiencing the same issue and have not found a solution on this code line (git hub project). I am using the hardware recommendations, and it listens but, it does not speak. I have reinstalled the portaudio binaries, and still no sound from Alexa but, oddly, the AYL speaker works well with other output. So, indeed, Alexa has lost her voice !!

jguerreiro commented 6 years ago

############################

Listening...

############################

2018-02-15 20:48:47.388 [ 2] W Logger:debugLogLevelSpecifiedWhenDebugLogsCompiledOut:level=DEBUG9:

WARNING: By default DEBUG logs are compiled out of RELEASE builds. Rebuild with the cmake parameter -DCMAKE_BUILD_TYPE=DEBUG to enable debug logs.

2018-02-15 20:48:47.388 [ 2] I DirectiveProcessor:setDialogRequestIdLocked:oldValue=,newValue=9208f3a8-2f64-4725-b26e-e3077716c2f6 2018-02-15 20:48:49.251 [ 3] I DirectiveSequencer:onDirective:directive={"namespace\:"SpeechRecognizer"\,name\:"StopCapture"\,messageId\:"38e08fb2-8cc6-4e77-9b54-345bfba226de"\,dialogRequestId\:""} 2018-02-15 20:48:49.252 [ 4] I DirectiveRouter:preHandleDirective:messageId=38e08fb2-8cc6-4e77-9b54-345bfba226de,action=calling 2018-02-15 20:48:49.252 [ 5] I DirectiveRouter:handleDirective:messageId=38e08fb2-8cc6-4e77-9b54-345bfba226de,action=calling ###########################

Thinking...

###########################

2018-02-15 20:48:49.261 [ 6] W Logger:debugLogLevelSpecifiedWhenDebugLogsCompiledOut:level=DEBUG9:

WARNING: By default DEBUG logs are compiled out of RELEASE builds. Rebuild with the cmake parameter -DCMAKE_BUILD_TYPE=DEBUG to enable debug logs.

2018-02-15 20:48:49.262 [ 6] I InProcessAttachmentReader:readFailed:reason=SDS is closed 2018-02-15 20:48:49.622 [ 3] I DirectiveSequencer:onDirective:directive={"namespace\:"SpeechSynthesizer"\,name\:"Speak"\,messageId\:"7e23554d-b1b9-40e8-8bdb-999e0fb90278"\,dialogRequestId\:"9208f3a8-2f64-4725-b26e-e3077716c2f6"} 2018-02-15 20:48:49.623 [ 4] I DirectiveRouter:preHandleDirective:messageId=7e23554d-b1b9-40e8-8bdb-999e0fb90278,action=calling 2018-02-15 20:48:49.624 [ 5] I DirectiveRouter:handleDirective:messageId=7e23554d-b1b9-40e8-8bdb-999e0fb90278,action=calling 2018-02-15 20:48:49.629 [ 7] W Logger:debugLogLevelSpecifiedWhenDebugLogsCompiledOut:level=DEBUG9:

WARNING: By default DEBUG logs are compiled out of RELEASE builds. Rebuild with the cmake parameter -DCMAKE_BUILD_TYPE=DEBUG to enable debug logs.

2018-02-15 20:48:49.629 [ 7] E MediaPlayer:saveOffsetBeforeTeardown - gst_element_query_position failed 2018-02-15 20:48:49.773 [ 7] I InProcessAttachmentReader:readFailed:reason=SDS is closed ###########################

Speaking...

###########################

########################################

Alexa is currently idle!

########################################

celinval commented 6 years ago

Hi,

Can you please paste the results for the following commands:

cat /proc/asound/cards
cat /proc/asound/modules
aplay -l -L
arecord -l -L
arecord -v /tmp/test.wav
aplay -v /tmp/test.wav
yoelrc88 commented 6 years ago

The same happening to me. Looks like is getting the wakeword but I can't hear the response from alexa. Here is my output:

pi@matrixpi:~ $ cat /proc/asound/card
card0/ card1/ cards  
pi@matrixpi:~ $ cat /proc/asound/cards 
 0 [ALSA           ]: bcm2835 - bcm2835 ALSA
                      bcm2835 ALSA
 1 [U0x46d0x81b    ]: USB-Audio - USB Device 0x46d:0x81b
                      USB Device 0x46d:0x81b at usb-3f980000.usb-1.4, high speed
pi@matrixpi:~ $ cat /proc/asound/modules 
 0 snd_bcm2835
 1 snd_usb_audio
pi@matrixpi:~ $ aplay -l -L
null
    Discard all samples (playback) or generate zero samples (capture)
default
sysdefault:CARD=ALSA
    bcm2835 ALSA, bcm2835 ALSA
    Default Audio Device
dmix:CARD=ALSA,DEV=0
    bcm2835 ALSA, bcm2835 ALSA
    Direct sample mixing device
dmix:CARD=ALSA,DEV=1
    bcm2835 ALSA, bcm2835 IEC958/HDMI
    Direct sample mixing device
dsnoop:CARD=ALSA,DEV=0
    bcm2835 ALSA, bcm2835 ALSA
    Direct sample snooping device
dsnoop:CARD=ALSA,DEV=1
    bcm2835 ALSA, bcm2835 IEC958/HDMI
    Direct sample snooping device
hw:CARD=ALSA,DEV=0
    bcm2835 ALSA, bcm2835 ALSA
    Direct hardware device without any conversions
hw:CARD=ALSA,DEV=1
    bcm2835 ALSA, bcm2835 IEC958/HDMI
    Direct hardware device without any conversions
plughw:CARD=ALSA,DEV=0
    bcm2835 ALSA, bcm2835 ALSA
    Hardware device with all software conversions
plughw:CARD=ALSA,DEV=1
    bcm2835 ALSA, bcm2835 IEC958/HDMI
    Hardware device with all software conversions
**** List of PLAYBACK Hardware Devices ****
card 0: ALSA [bcm2835 ALSA], device 0: bcm2835 ALSA [bcm2835 ALSA]
  Subdevices: 8/8
  Subdevice #0: subdevice #0
  Subdevice #1: subdevice #1
  Subdevice #2: subdevice #2
  Subdevice #3: subdevice #3
  Subdevice #4: subdevice #4
  Subdevice #5: subdevice #5
  Subdevice #6: subdevice #6
  Subdevice #7: subdevice #7
card 0: ALSA [bcm2835 ALSA], device 1: bcm2835 ALSA [bcm2835 IEC958/HDMI]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
pi@matrixpi:~ $ arecord -l -L
null
    Discard all samples (playback) or generate zero samples (capture)
default
sysdefault:CARD=U0x46d0x81b
    USB Device 0x46d:0x81b, USB Audio
    Default Audio Device
front:CARD=U0x46d0x81b,DEV=0
    USB Device 0x46d:0x81b, USB Audio
    Front speakers
surround21:CARD=U0x46d0x81b,DEV=0
    USB Device 0x46d:0x81b, USB Audio
    2.1 Surround output to Front and Subwoofer speakers
surround40:CARD=U0x46d0x81b,DEV=0
    USB Device 0x46d:0x81b, USB Audio
    4.0 Surround output to Front and Rear speakers
surround41:CARD=U0x46d0x81b,DEV=0
    USB Device 0x46d:0x81b, USB Audio
    4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=U0x46d0x81b,DEV=0
    USB Device 0x46d:0x81b, USB Audio
    5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=U0x46d0x81b,DEV=0
    USB Device 0x46d:0x81b, USB Audio
    5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=U0x46d0x81b,DEV=0
    USB Device 0x46d:0x81b, USB Audio
    7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
iec958:CARD=U0x46d0x81b,DEV=0
    USB Device 0x46d:0x81b, USB Audio
    IEC958 (S/PDIF) Digital Audio Output
dmix:CARD=U0x46d0x81b,DEV=0
    USB Device 0x46d:0x81b, USB Audio
    Direct sample mixing device
dsnoop:CARD=U0x46d0x81b,DEV=0
    USB Device 0x46d:0x81b, USB Audio
    Direct sample snooping device
hw:CARD=U0x46d0x81b,DEV=0
    USB Device 0x46d:0x81b, USB Audio
    Direct hardware device without any conversions
plughw:CARD=U0x46d0x81b,DEV=0
    USB Device 0x46d:0x81b, USB Audio
    Hardware device with all software conversions
**** List of CAPTURE Hardware Devices ****
card 1: U0x46d0x81b [USB Device 0x46d:0x81b], device 0: USB Audio [USB Audio]
  Subdevices: 0/1
  Subdevice #0: subdevice #0
pi@matrixpi:~ $ 

I am using a Raspi Pi 3 and a logitech webcam that has a micrphone.

celinval commented 6 years ago

@yoelrc88, can you also please try the two following commands? Let me know if you hear a beep in any of them:

gst-launch-1.0 -m audiotestsrc ! alsasink 
gst-launch-1.0 -m audiotestsrc ! autoaudiosink 

Thanks

yoelrc88 commented 6 years ago

Hi @celinval, Thanks for the response,

At the begin I got that didn't have the comand

$ gst-launch-1.0 -m audiotestsrc ! alsasink
zsh: command not found: gst-launch-1.0

Then installed

sudo apt install gstreamer1.0-tools gstreamer1.0-alsa

and got this:

$ gst-launch-1.0 -m audiotestsrc ! alsasink 
Setting pipeline to PAUSED ...
Pipeline is PREROLLING ...
Got message #4 from element "alsasink0" (state-changed): GstMessageStateChanged, old-state=(GstState)GST_STATE_NULL, new-state=(GstState)GST_STATE_READY, pending-state=(GstState)GST_STATE_VOID_PENDING;
Got message #5 from element "audiotestsrc0" (state-changed): GstMessageStateChanged, old-state=(GstState)GST_STATE_NULL, new-state=(GstState)GST_STATE_READY, pending-state=(GstState)GST_STATE_VOID_PENDING;
Got message #6 from element "pipeline0" (state-changed): GstMessageStateChanged, old-state=(GstState)GST_STATE_NULL, new-state=(GstState)GST_STATE_READY, pending-state=(GstState)GST_STATE_PAUSED;
Got message #11 from pad "audiotestsrc0:src" (stream-status): GstMessageStreamStatus, type=(GstStreamStatusType)GST_STREAM_STATUS_TYPE_CREATE, owner=(GstElement)"\(GstAudioTestSrc\)\ audiotestsrc0", object=(GstTask)"\(GstTask\)\ audiotestsrc0:src";
Got message #12 from element "audiotestsrc0" (state-changed): GstMessageStateChanged, old-state=(GstState)GST_STATE_READY, new-state=(GstState)GST_STATE_PAUSED, pending-state=(GstState)GST_STATE_VOID_PENDING;
Got message #13 from pad "audiotestsrc0:src" (stream-status): GstMessageStreamStatus, type=(GstStreamStatusType)GST_STREAM_STATUS_TYPE_ENTER, owner=(GstElement)"\(GstAudioTestSrc\)\ audiotestsrc0", object=(GstTask)"\(GstTask\)\ audiotestsrc0:src";
Got message #14 from element "pipeline0" (stream-start): GstMessageStreamStart, group-id=(uint)0;
Got message #18 from element "alsasink0" (latency): no message details
Redistribute latency...
Got message #19 from object "audiosinkringbuffer0" (stream-status): GstMessageStreamStatus, type=(GstStreamStatusType)GST_STREAM_STATUS_TYPE_ENTER, owner=(GstElement)"\(GstAlsaSink\)\ alsasink0", object=(GThread)NULL;
Got message #24 from element "alsasink0" (tag): GstMessageTag, taglist=(taglist)"taglist\,\ description\=\(string\)\"audiotest\\\ wave\"\;";
Got message #25 from element "alsasink0" (state-changed): GstMessageStateChanged, old-state=(GstState)GST_STATE_READY, new-state=(GstState)GST_STATE_PAUSED, pending-state=(GstState)GST_STATE_VOID_PENDING;
Got message #28 from element "pipeline0" (state-changed): GstMessageStateChanged, old-state=(GstState)GST_STATE_READY, new-state=(GstState)GST_STATE_PAUSED, pending-state=(GstState)GST_STATE_VOID_PENDING;
Pipeline is PREROLLED ...
Got message #27 from element "pipeline0" (async-done): GstMessageAsyncDone, running-time=(guint64)18446744073709551615;
Setting pipeline to PLAYING ...
Got message #29 from element "pipeline0" (new-clock): GstMessageNewClock, clock=(GstClock)"\(GstAudioClock\)\ GstAudioSinkClock";
New clock: GstAudioSinkClock
Got message #31 from element "alsasink0" (state-changed): GstMessageStateChanged, old-state=(GstState)GST_STATE_PAUSED, new-state=(GstState)GST_STATE_PLAYING, pending-state=(GstState)GST_STATE_VOID_PENDING;
Got message #32 from element "audiotestsrc0" (state-changed): GstMessageStateChanged, old-state=(GstState)GST_STATE_PAUSED, new-state=(GstState)GST_STATE_PLAYING, pending-state=(GstState)GST_STATE_VOID_PENDING;
Got message #33 from element "pipeline0" (state-changed): GstMessageStateChanged, old-state=(GstState)GST_STATE_PAUSED, new-state=(GstState)GST_STATE_PLAYING, pending-state=(GstState)GST_STATE_VOID_PENDING;
^Chandling interrupt.
Got message #34 from element "pipeline0" (application): GstLaunchInterrupt, message=(string)"Pipeline\ interrupted";
Interrupt: Stopping pipeline ...
Execution ended after 0:00:02.119630889
Setting pipeline to PAUSED ...
Setting pipeline to READY ...
Setting pipeline to NULL ...
Freeing pipeline ...

and for gst-launch-1.0 -m audiotestsrc ! autoaudiosink:

$ gst-launch-1.0 -m audiotestsrc ! autoaudiosink  
Setting pipeline to PAUSED ...
Pipeline is PREROLLING ...
Got message #7 from element "autoaudiosink0" (state-changed): GstMessageStateChanged, old-state=(GstState)GST_STATE_NULL, new-state=(GstState)GST_STATE_READY, pending-state=(GstState)GST_STATE_VOID_PENDING;
Got message #8 from element "audiotestsrc0" (state-changed): GstMessageStateChanged, old-state=(GstState)GST_STATE_NULL, new-state=(GstState)GST_STATE_READY, pending-state=(GstState)GST_STATE_VOID_PENDING;
Got message #9 from element "pipeline0" (state-changed): GstMessageStateChanged, old-state=(GstState)GST_STATE_NULL, new-state=(GstState)GST_STATE_READY, pending-state=(GstState)GST_STATE_PAUSED;
Got message #15 from pad "audiotestsrc0:src" (stream-status): GstMessageStreamStatus, type=(GstStreamStatusType)GST_STREAM_STATUS_TYPE_CREATE, owner=(GstElement)"\(GstAudioTestSrc\)\ audiotestsrc0", object=(GstTask)"\(GstTask\)\ audiotestsrc0:src";
Got message #16 from element "audiotestsrc0" (state-changed): GstMessageStateChanged, old-state=(GstState)GST_STATE_READY, new-state=(GstState)GST_STATE_PAUSED, pending-state=(GstState)GST_STATE_VOID_PENDING;
Got message #17 from pad "audiotestsrc0:src" (stream-status): GstMessageStreamStatus, type=(GstStreamStatusType)GST_STREAM_STATUS_TYPE_ENTER, owner=(GstElement)"\(GstAudioTestSrc\)\ audiotestsrc0", object=(GstTask)"\(GstTask\)\ audiotestsrc0:src";
Got message #18 from element "pipeline0" (stream-start): GstMessageStreamStart, group-id=(uint)0;
Got message #23 from element "autoaudiosink0-actual-sink-alsa" (latency): no message details
Redistribute latency...
Got message #24 from object "audiosinkringbuffer0" (stream-status): GstMessageStreamStatus, type=(GstStreamStatusType)GST_STREAM_STATUS_TYPE_ENTER, owner=(GstElement)"\(GstAlsaSink\)\ autoaudiosink0-actual-sink-alsa", object=(GThread)NULL;
Got message #29 from element "autoaudiosink0-actual-sink-alsa" (tag): GstMessageTag, taglist=(taglist)"taglist\,\ description\=\(string\)\"audiotest\\\ wave\"\;";
Got message #30 from element "autoaudiosink0-actual-sink-alsa" (state-changed): GstMessageStateChanged, old-state=(GstState)GST_STATE_READY, new-state=(GstState)GST_STATE_PAUSED, pending-state=(GstState)GST_STATE_VOID_PENDING;
Got message #33 from element "autoaudiosink0" (state-changed): GstMessageStateChanged, old-state=(GstState)GST_STATE_READY, new-state=(GstState)GST_STATE_PAUSED, pending-state=(GstState)GST_STATE_VOID_PENDING;
Got message #35 from element "pipeline0" (state-changed): GstMessageStateChanged, old-state=(GstState)GST_STATE_READY, new-state=(GstState)GST_STATE_PAUSED, pending-state=(GstState)GST_STATE_VOID_PENDING;
Pipeline is PREROLLED ...
Got message #34 from element "pipeline0" (async-done): GstMessageAsyncDone, running-time=(guint64)18446744073709551615;
Setting pipeline to PLAYING ...
Got message #36 from element "pipeline0" (new-clock): GstMessageNewClock, clock=(GstClock)"\(GstAudioClock\)\ GstAudioSinkClock";
New clock: GstAudioSinkClock
Got message #38 from element "autoaudiosink0-actual-sink-alsa" (state-changed): GstMessageStateChanged, old-state=(GstState)GST_STATE_PAUSED, new-state=(GstState)GST_STATE_PLAYING, pending-state=(GstState)GST_STATE_VOID_PENDING;
Got message #39 from element "autoaudiosink0" (state-changed): GstMessageStateChanged, old-state=(GstState)GST_STATE_PAUSED, new-state=(GstState)GST_STATE_PLAYING, pending-state=(GstState)GST_STATE_VOID_PENDING;
Got message #40 from element "audiotestsrc0" (state-changed): GstMessageStateChanged, old-state=(GstState)GST_STATE_PAUSED, new-state=(GstState)GST_STATE_PLAYING, pending-state=(GstState)GST_STATE_VOID_PENDING;
Got message #41 from element "pipeline0" (state-changed): GstMessageStateChanged, old-state=(GstState)GST_STATE_PAUSED, new-state=(GstState)GST_STATE_PLAYING, pending-state=(GstState)GST_STATE_VOID_PENDING;

^Chandling interrupt.
Got message #42 from element "pipeline0" (application): GstLaunchInterrupt, message=(string)"Pipeline\ interrupted";
Interrupt: Stopping pipeline ...
Execution ended after 0:00:02.209882106
Setting pipeline to PAUSED ...
Setting pipeline to READY ...
Setting pipeline to NULL ...
Freeing pipeline ...

Both times I could hear a tune playing through the 3.5mm of the Rasp Pi.

Then I ran the SampleApp again:

$ cd /home/pi/sdk-folder/sdk-build/SampleApp/src
./SampleApp /home/pi/sdk-folder/sdk-build/Integration/AlexaClientSDKConfig.json /home/pi/sdk-folder/third-party/alexa-rpi/models debug9
2018-02-19 23:59:21.889 [  1] I sdkVersion: 1.5.0
Running app with log level: DEBUG9
2018-02-19 23:59:21.903 [  1] 0 ConfigurationNode:initializeSuccess
2018-02-19 23:59:21.914 [  1] 9 MediaPlayer:createCalled
2018-02-19 23:59:21.960 [  1] 9 MediaPlayer:noOutputConversion
2018-02-19 23:59:21.963 [  1] 9 MediaPlayer:createCalled
2018-02-19 23:59:21.964 [  1] 9 MediaPlayer:noOutputConversion
2018-02-19 23:59:21.966 [  1] 9 MediaPlayer:createCalled
2018-02-19 23:59:21.967 [  1] 9 MediaPlayer:noOutputConversion
2018-02-19 23:59:21.969 [  1] 9 MediaPlayer:createCalled
2018-02-19 23:59:21.970 [  1] 9 MediaPlayer:noOutputConversion
2018-02-19 23:59:21.987 [  1] 9 MediaPlayer:setObserverCalled
2018-02-19 23:59:21.988 [  2] 0 MediaPlayer:handleSetObserverCalled
2018-02-19 23:59:21.988 [  1] 9 SpeechSynthesizer:addObserver:observer=0x125313c
2018-02-19 23:59:21.990 [  1] 9 PlaybackRouter:create::called
2018-02-19 23:59:21.991 [  1] 9 MediaPlayer:setObserverCalled
2018-02-19 23:59:21.991 [  2] 0 MediaPlayer:handleSetObserverCalled
2018-02-19 23:59:21.992 [  1] 9 MediaPlayer:setObserverCalled
2018-02-19 23:59:21.992 [  2] 0 MediaPlayer:handleSetObserverCalled
2018-02-19 23:59:21.996 [  1] 9 AlertScheduler:setTimerForNextAlertLocked
2018-02-19 23:59:21.996 [  1] 9 AlertScheduler:executeScheduleNextAlertForRendering::no work to do.
2018-02-19 23:59:21.997 [  3] 1 AlertsCapabilityAgent:executeOnConnectionStatusChanged:status=DISCONNECTED,reason=ACL_CLIENT_REQUEST
2018-02-19 23:59:21.997 [  1] 5 NotificationsRenderer:create
2018-02-19 23:59:21.997 [  1] 9 MediaPlayer:setObserverCalled
2018-02-19 23:59:21.998 [  2] 0 MediaPlayer:handleSetObserverCalled
2018-02-19 23:59:21.998 [  1] 5 NotificationsCapabilityAgent:init
2018-02-19 23:59:21.999 [  1] 5 NotificationsRenderer:addObserver
2018-02-19 23:59:22.001 [  4] 5 NotificationsCapabilityAgent:executeInit
2018-02-19 23:59:22.002 [  4] 0 NotificationsCapabilityAgent:notifyObservers:indicatorState=0
2018-02-19 23:59:22.003 [  4] 5 NotificationsCapabilityAgent:executeProvideState:sendToken=false,stateRequestToken=0
2018-02-19 23:59:22.004 [  4] 0 ContextManager:updateStateLocked:action=updatedState,namespace=Notifications,name=IndicatorState
2018-02-19 23:59:22.006 [  1] 9 MediaPlayer:getSpeakerTypeCalled
2018-02-19 23:59:22.007 [  1] 9 MediaPlayer:getSpeakerTypeCalled
2018-02-19 23:59:22.007 [  1] 9 MediaPlayer:getSpeakerTypeCalled
2018-02-19 23:59:22.007 [  1] 9 MediaPlayer:getSpeakerTypeCalled
2018-02-19 23:59:22.007 [  1] 0 SpeakerManager:mapCreated:numAvsSynced=3,numLocal=1
2018-02-19 23:59:22.007 [  1] 9 MediaPlayer:getSpeakerSettingsCalled
2018-02-19 23:59:22.007 [  2] 9 MediaPlayer:handleGetSpeakerSettingsCalled
2018-02-19 23:59:22.008 [  1] 9 MediaPlayer:getSpeakerSettingsCalled
2018-02-19 23:59:22.008 [  2] 9 MediaPlayer:handleGetSpeakerSettingsCalled
2018-02-19 23:59:22.008 [  1] 9 MediaPlayer:getSpeakerSettingsCalled
2018-02-19 23:59:22.008 [  2] 9 MediaPlayer:handleGetSpeakerSettingsCalled
2018-02-19 23:59:22.008 [  1] 9 SpeakerManager:validateSpeakerSettingsConsistencyResult:consistent=true
2018-02-19 23:59:22.008 [  1] 9 SpeakerManager:validateSpeakerSettings:volume=100,mute=false
2018-02-19 23:59:22.008 [  1] 9 SpeakerManager:updateContextManagerCalled:speakerType=AVS_SYNCED
2018-02-19 23:59:22.010 [  1] 0 ExternalMediaPlayer:createAdapters
2018-02-19 23:59:22.011 [  1] 1 AudioPlayer:addObserver
2018-02-19 23:59:22.013 [  1] 9 DirectiveRouter:addDirectiveHandlers:action=added,namespace=SpeechSynthesizer,name=Speak,handler=0x12598a0,policy=BLOCKING
2018-02-19 23:59:22.013 [  1] 9 DirectiveRouter:addDirectiveHandlers:action=added,namespace=AudioPlayer,name=ClearQueue,handler=0x125a738,policy=NON_BLOCKING
2018-02-19 23:59:22.013 [  1] 9 DirectiveRouter:addDirectiveHandlers:action=added,namespace=AudioPlayer,name=Stop,handler=0x125a738,policy=NON_BLOCKING
2018-02-19 23:59:22.013 [  1] 9 DirectiveRouter:addDirectiveHandlers:action=added,namespace=AudioPlayer,name=Play,handler=0x125a738,policy=NON_BLOCKING
2018-02-19 23:59:22.014 [  1] 9 DirectiveRouter:addDirectiveHandlers:action=added,namespace=Alexa.SeekController,name=AdjustSeekPosition,handler=0x1267d68,policy=NON_BLOCKING
2018-02-19 23:59:22.014 [  1] 9 DirectiveRouter:addDirectiveHandlers:action=added,namespace=Alexa.PlaylistController,name=DisableRepeat,handler=0x1267d68,policy=NON_BLOCKING
2018-02-19 23:59:22.014 [  1] 9 DirectiveRouter:addDirectiveHandlers:action=added,namespace=Alexa.PlaylistController,name=DisableShuffle,handler=0x1267d68,policy=NON_BLOCKING
2018-02-19 23:59:22.014 [  1] 9 DirectiveRouter:addDirectiveHandlers:action=added,namespace=Alexa.PlaybackController,name=FastForward,handler=0x1267d68,policy=NON_BLOCKING
2018-02-19 23:59:22.014 [  1] 9 DirectiveRouter:addDirectiveHandlers:action=added,namespace=Alexa.FavoritesController,name=Unfavorite,handler=0x1267d68,policy=NON_BLOCKING
2018-02-19 23:59:22.014 [  1] 9 DirectiveRouter:addDirectiveHandlers:action=added,namespace=Alexa.PlaybackController,name=StartOver,handler=0x1267d68,policy=NON_BLOCKING
2018-02-19 23:59:22.014 [  1] 9 DirectiveRouter:addDirectiveHandlers:action=added,namespace=Alexa.PlaybackController,name=Previous,handler=0x1267d68,policy=NON_BLOCKING
2018-02-19 23:59:22.014 [  1] 9 DirectiveRouter:addDirectiveHandlers:action=added,namespace=Alexa.PlaylistController,name=EnableRepeat,handler=0x1267d68,policy=NON_BLOCKING
2018-02-19 23:59:22.014 [  1] 9 DirectiveRouter:addDirectiveHandlers:action=added,namespace=Alexa.PlaybackController,name=Rewind,handler=0x1267d68,policy=NON_BLOCKING
2018-02-19 23:59:22.014 [  1] 9 DirectiveRouter:addDirectiveHandlers:action=added,namespace=Alexa.PlaybackController,name=Next,handler=0x1267d68,policy=NON_BLOCKING
2018-02-19 23:59:22.014 [  1] 9 DirectiveRouter:addDirectiveHandlers:action=added,namespace=Alexa.PlaybackController,name=Pause,handler=0x1267d68,policy=NON_BLOCKING
2018-02-19 23:59:22.014 [  1] 9 DirectiveRouter:addDirectiveHandlers:action=added,namespace=Alexa.PlaylistController,name=EnableShuffle,handler=0x1267d68,policy=NON_BLOCKING
2018-02-19 23:59:22.014 [  1] 9 DirectiveRouter:addDirectiveHandlers:action=added,namespace=Alexa.PlaybackController,name=Play,handler=0x1267d68,policy=NON_BLOCKING
2018-02-19 23:59:22.015 [  1] 9 DirectiveRouter:addDirectiveHandlers:action=added,namespace=Alexa.FavoritesController,name=Favorite,handler=0x1267d68,policy=NON_BLOCKING
2018-02-19 23:59:22.015 [  1] 9 DirectiveRouter:addDirectiveHandlers:action=added,namespace=Alexa.SeekController,name=SetSeekPosition,handler=0x1267d68,policy=NON_BLOCKING
2018-02-19 23:59:22.015 [  1] 9 DirectiveRouter:addDirectiveHandlers:action=added,namespace=ExternalMediaPlayer,name=Login,handler=0x1267d68,policy=NON_BLOCKING
2018-02-19 23:59:22.015 [  1] 9 DirectiveRouter:addDirectiveHandlers:action=added,namespace=ExternalMediaPlayer,name=Logout,handler=0x1267d68,policy=NON_BLOCKING
2018-02-19 23:59:22.015 [  1] 9 DirectiveRouter:addDirectiveHandlers:action=added,namespace=ExternalMediaPlayer,name=Play,handler=0x1267d68,policy=NON_BLOCKING
2018-02-19 23:59:22.015 [  1] 9 DirectiveRouter:addDirectiveHandlers:action=added,namespace=SpeechRecognizer,name=ExpectSpeech,handler=0x1258f28,policy=NON_BLOCKING
2018-02-19 23:59:22.015 [  1] 9 DirectiveRouter:addDirectiveHandlers:action=added,namespace=SpeechRecognizer,name=StopCapture,handler=0x1258f28,policy=NON_BLOCKING
2018-02-19 23:59:22.015 [  1] 9 DirectiveRouter:addDirectiveHandlers:action=added,namespace=Alerts,name=DeleteAlert,handler=0x125b478,policy=NON_BLOCKING
2018-02-19 23:59:22.015 [  1] 9 DirectiveRouter:addDirectiveHandlers:action=added,namespace=Alerts,name=SetAlert,handler=0x125b478,policy=NON_BLOCKING
2018-02-19 23:59:22.015 [  1] 9 DirectiveRouter:addDirectiveHandlers:action=added,namespace=System,name=SetEndpoint,handler=0x1269270,policy=NON_BLOCKING
2018-02-19 23:59:22.016 [  1] 9 DirectiveRouter:addDirectiveHandlers:action=added,namespace=System,name=ResetUserInactivity,handler=0x1258ce4,policy=NON_BLOCKING
2018-02-19 23:59:22.016 [  1] 9 DirectiveRouter:addDirectiveHandlers:action=added,namespace=Speaker,name=AdjustVolume,handler=0x12677e8,policy=NON_BLOCKING
2018-02-19 23:59:22.016 [  1] 9 DirectiveRouter:addDirectiveHandlers:action=added,namespace=Speaker,name=SetMute,handler=0x12677e8,policy=NON_BLOCKING
2018-02-19 23:59:22.016 [  1] 9 DirectiveRouter:addDirectiveHandlers:action=added,namespace=Speaker,name=SetVolume,handler=0x12677e8,policy=NON_BLOCKING
2018-02-19 23:59:22.016 [  1] 9 TemplateRuntime:getConfiguration
2018-02-19 23:59:22.016 [  1] 9 DirectiveRouter:addDirectiveHandlers:action=added,namespace=TemplateRuntime,name=RenderPlayerInfo,handler=0x1268a58,policy=HANDLE_IMMEDIATELY
2018-02-19 23:59:22.016 [  1] 9 DirectiveRouter:addDirectiveHandlers:action=added,namespace=TemplateRuntime,name=RenderTemplate,handler=0x1268a58,policy=HANDLE_IMMEDIATELY
2018-02-19 23:59:22.016 [  1] 9 DirectiveRouter:addDirectiveHandlers:action=added,namespace=Notifications,name=ClearIndicator,handler=0x125f0c4,policy=HANDLE_IMMEDIATELY
2018-02-19 23:59:22.016 [  1] 9 DirectiveRouter:addDirectiveHandlers:action=added,namespace=Notifications,name=SetIndicator,handler=0x125f0c4,policy=HANDLE_IMMEDIATELY
2018-02-19 23:59:22.267 [  5] 0 HttpPost:doPostSucceeded:code=200
2018-02-19 23:59:22.268 [  5] 0 AuthDelegate:handleLwaResponseSucceeded:expiresInSeconds=3600
2018-02-19 23:59:22.268 [  5] 0 AuthDelegate:onAuthStateChangeCalled:state=1,error=0
2018-02-19 23:59:22.269 [  1] 0 MessageRouter:connectionStatusChanged:reason=ACL_CLIENT_REQUEST,newStatus=PENDING
2018-02-19 23:59:22.271 [  1] 9 HTTP2Transport:setupDownchannelStream:url=https\://avs-alexa-na.amazon.com/v20160207/directives
2018-02-19 23:59:22.272 [  1] 0 HTTP2StreamPool:getStream:streamId=1,numAcquiredStreams=1
2018-02-19 23:59:22.274 [  6] 9 PostConnectSynchronize:Entering postConnectLoop thread
2018-02-19 23:59:22.275 [  3] 1 AlertsCapabilityAgent:executeOnConnectionStatusChanged:status=PENDING,reason=ACL_CLIENT_REQUEST
2018-02-19 23:59:22.275 [  7] 0 NotificationsCapabilityAgent:provideState:stateRequestToken=1
2018-02-19 23:59:22.275 [  8] 0 ExternalMediaPlayer:executeProvideState:sendToken=true,stateRequestToken=1
2018-02-19 23:59:22.275 [  7] 9 SpeechSynthesizer:provideState:token=1
2018-02-19 23:59:22.275 [  7] 0 AudioPlayer:provideState:stateRequestToken=1
2018-02-19 23:59:22.276 [  9] 0 SpeechSynthesizer:executeProvideState:stateRequestToken=1
2018-02-19 23:59:22.276 [  4] 5 NotificationsCapabilityAgent:executeProvideState:sendToken=true,stateRequestToken=1
2018-02-19 23:59:22.276 [  a] 0 AudioPlayer:executeProvideState:sendToken=true,stateRequestToken=1
2018-02-19 23:59:22.276 [  8] 0 ContextManager:updateStateLocked:action=updatedState,namespace=Alexa.PlaybackStateReporter,name=playbackState
#############################
#       Connecting...       #
#############################

2018-02-19 23:59:22.278 [  b] 0 ContextManager:updateStateLocked:action=updatedState,namespace=SpeechRecognizer,name=RecognizerState
2018-02-19 23:59:22.278 [  8] 0 ExternalMediaPlayer:executeProvideState:sendToken=true,stateRequestToken=1
2018-02-19 23:59:22.278 [  8] 0 ContextManager:updateStateLocked:action=updatedState,namespace=ExternalMediaPlayer,name=ExternalMediaPlayerState
2018-02-19 23:59:22.278 [  4] 0 ContextManager:updateStateLocked:action=updatedState,namespace=Notifications,name=IndicatorState
2018-02-19 23:59:22.278 [  9] 0 ContextManager:updateStateLocked:action=updatedState,namespace=SpeechSynthesizer,name=SpeechState
2018-02-19 23:59:22.278 [  a] 0 ContextManager:updateStateLocked:action=updatedState,namespace=AudioPlayer,name=PlaybackState
2018-02-19 23:59:22.280 [  7] 0 ContextManager:buildContextSuccessful
2018-02-19 23:59:22.281 [  7] 0 EventBuilder:buildJsonEventString:messageId=943f346a-796c-4b7c-ab22-ec1175683da8,namespace=System,name=SynchronizeState
2018-02-19 23:59:22.282 [  7] 0 PostConnectSynchronize:onContextAvailable : Send PostConnectMessage to transport
2018-02-19 23:59:22.283 [  7] 9 HTTP2Transport:enqueueRequest
2018-02-19 23:59:22.516 [  c] 0 HTTP2Stream:receivedRequestId:value=x-amzn-requestid\: 0ac17bfffe3d2a78-0000140e-00005f25-00790a060840dcd6-5adfae20-1
2018-02-19 23:59:22.517 [  c] 0 HTTP2Transport:processNextOutgoingMessage
2018-02-19 23:59:22.517 [  c] 0 HTTP2StreamPool:getStream:streamId=3,numAcquiredStreams=2
2018-02-19 23:59:22.518 [  c] 9 HTTP2Transport:insertActiveStream:handle=0x1356c08
2018-02-19 23:59:23.816 [  c] 0 HTTP2Stream:receivedRequestId:value=x-amzn-requestid\: 0ac17bfffe3d2a78-0000140e-00005f25-00790a060840dcd6-5adfae20-3
2018-02-19 23:59:23.818 [  c] 0 PostConnectSynchronize:onSendCompleted:status=SUCCESS_NO_CONTENT
2018-02-19 23:59:23.818 [  6] 9 PostConnectSynchronize:Exiting postConnectLoop thread
2018-02-19 23:59:23.819 [  c] 0 PostConnectSynchronize:onConnected()
2018-02-19 23:59:23.820 [  c] 0 MessageRouter:connectionStatusChanged:reason=ACL_CLIENT_REQUEST,newStatus=CONNECTED
2018-02-19 23:59:23.821 [  3] 1 AlertsCapabilityAgent:executeOnConnectionStatusChanged:status=CONNECTED,reason=ACL_CLIENT_REQUEST
########################################
#       Alexa is currently idle!       #
########################################

2018-02-19 23:59:23.822 [  1] 9 SpeakerManager:addSpeakerManagerObserverCalled
2018-02-19 23:59:23.822 [  1] 9 SpeakerManager:addSpeakerManagerObserver:observer=0x1248ea0
2018-02-19 23:59:23.823 [  1] 5 NotificationsCapabilityAgent:addObserver
2018-02-19 23:59:23.823 [  c] 0 HTTP2Transport:cleanupFinishedStream:streamId=3,result=204
#################################################
#       NOTIFICATION INDICATOR STATE: OFF       #
#################################################

2018-02-19 23:59:23.825 [  1] 9 TemplateRuntime:addObserver
2018-02-19 23:59:23.826 [  d] 0 TemplateRuntime:addObserverInExecutor
2018-02-19 23:59:23.826 [  c] 0 HTTP2StreamPool:releaseStream:streamId=3,numAcquiredStreams=1
2018-02-19 23:59:23.826 [  c] 0 CurlEasyHandleWrapper:reset:responseCode=HTTP_RESPONSE_SUCCESS_NO_CONTENT
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.front
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround21
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround21
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround40
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround41
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround50
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround51
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround71
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.iec958
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.iec958
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.iec958
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.hdmi
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.hdmi
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.modem
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.modem
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline
2018-02-19 23:59:23.876 [  1] I SensoryKeywordDetector:License expires on 28 May 2018 00:00:00 GMT
2018-02-19 23:59:23.877 [  1] I SensoryKeywordDetector:Sensory library license does not expire for at least 60 more days.
                  #    #     #  #####      #####  ######  #    #              
                 # #   #     # #     #    #     # #     # #   #               
                #   #  #     # #          #       #     # #  #                
               #     # #     #  #####      #####  #     # ###                 
               #######  #   #        #          # #     # #  #                
               #     #   # #   #     #    #     # #     # #   #               
               #     #    #     #####      #####  ######  #    #              

       #####                                           #                      
      #     #   ##   #    # #####  #      ######      # #   #####  #####      
      #        #  #  ##  ## #    # #      #          #   #  #    # #    #     
       #####  #    # # ## # #    # #      #####     #     # #    # #    #     
            # ###### #    # #####  #      #         ####### #####  #####      
      #     # #    # #    # #      #      #         #     # #      #          
       #####  #    # #    # #      ###### ######    #     # #      #          

       SDK Version 1.5.0

+----------------------------------------------------------------------------+
|                                  Options:                                  |
| Wake word:                                                                 |
|       Simply say Alexa and begin your query.                               |
| Tap to talk:                                                               |
|       Press 't' and Enter followed by your query (no need for the 'Alexa').|
| Hold to talk:                                                              |
|       Press 'h' followed by Enter to simulate holding a button.            |
|       Then say your query (no need for the 'Alexa').                       |
|       Press 'h' followed by Enter to simulate releasing a button.          |
| Stop an interaction:                                                       |
|       Press 's' and Enter to stop an ongoing interaction.                  |
| Privacy mode (microphone off):                                             |
|       Press 'm' and Enter to turn on and off the microphone.               |
| Echo Spatial Perception (ESP): This is only for testing purpose only!      |
|       Press 'e' followed by Enter at any time to adjust ESP settings.      |
| Playback Controls:                                                         |
|       Press '1' for a 'PLAY' button press.                                 |
|       Press '2' for a 'PAUSE' button press.                                |
|       Press '3' for a 'NEXT' button press.                                 |
|       Press '4' for a 'PREVIOUS' button press.                             |
| Settings:                                                                  |
|       Press 'c' followed by Enter at any time to see the settings screen.  |
| Speaker Control:                                                           |
|       Press 'p' followed by Enter at any time to adjust speaker settings.  |
| Firmware Version:                                                          |
|       Press 'f' followed by Enter at any time to report a different        |
|       firmware version.                                                    |
| Info:                                                                      |
|       Press 'i' followed by Enter at any time to see the help screen.      |
| Quit:                                                                      |
|       Press 'q' followed by Enter at any time to quit the application.     |
+----------------------------------------------------------------------------+

2018-02-19 23:59:27.106 [  b] 0 AudioInputProcessor:setState:from=IDLE,to=RECOGNIZING
2018-02-19 23:59:27.107 [  b] 0 ContextManager:updateStateLocked:action=updatedState,namespace=SpeechRecognizer,name=RecognizerState
2018-02-19 23:59:27.108 [  e] 0 DialogUXStateAggregator:setState:from=IDLE,to=LISTENING
2018-02-19 23:59:27.109 [  8] 0 ExternalMediaPlayer:executeProvideState:sendToken=true,stateRequestToken=2
2018-02-19 23:59:27.109 [  7] 0 NotificationsCapabilityAgent:provideState:stateRequestToken=2
############################
#       Listening...       #
############################

2018-02-19 23:59:27.109 [  8] 0 ContextManager:updateStateLocked:action=updatedState,namespace=Alexa.PlaybackStateReporter,name=playbackState
2018-02-19 23:59:27.109 [  4] 5 NotificationsCapabilityAgent:executeProvideState:sendToken=true,stateRequestToken=2
2018-02-19 23:59:27.109 [  8] 0 ExternalMediaPlayer:executeProvideState:sendToken=true,stateRequestToken=2
2018-02-19 23:59:27.109 [  8] 0 ContextManager:updateStateLocked:action=updatedState,namespace=ExternalMediaPlayer,name=ExternalMediaPlayerState
2018-02-19 23:59:27.110 [  4] 0 ContextManager:updateStateLocked:action=updatedState,namespace=Notifications,name=IndicatorState
2018-02-19 23:59:27.112 [  7] 0 ContextManager:buildContextSuccessful
2018-02-19 23:59:27.112 [  b] 0 AudioInputProcessor:executeOnContextAvailable
2018-02-19 23:59:27.113 [  b] 1 FocusManager:acquireChannel:channelName=Dialog,activityId=SpeechRecognizer.Recognize
2018-02-19 23:59:27.113 [  b] I DirectiveProcessor:setDialogRequestIdLocked:oldValue=,newValue=2692ec81-55d5-404a-9af2-6901c0f984c0
2018-02-19 23:59:27.114 [  b] 0 DirectiveProcessor:scrubDialogRequestIdLocked:reason=emptyDialogRequestId
2018-02-19 23:59:27.114 [  f] 9 AudioInputProcessor:onFocusChanged:newFocus=FOREGROUND
2018-02-19 23:59:27.115 [  b] 0 EventBuilder:buildJsonEventString:messageId=f0bc2d42-3650-4ab2-94f0-19a1e689e157,namespace=SpeechRecognizer,name=Recognize
2018-02-19 23:59:27.117 [  b] 0 AudioInputProcessor:executeOnFocusChanged:newFocus=FOREGROUND
2018-02-19 23:59:27.117 [  b] 9 HTTP2Transport:enqueueRequest
2018-02-19 23:59:27.136 [  c] 0 HTTP2Transport:processNextOutgoingMessage
2018-02-19 23:59:27.136 [  c] 0 HTTP2StreamPool:getStream:streamId=5,numAcquiredStreams=2
2018-02-19 23:59:27.136 [  c] 9 HTTP2Transport:insertActiveStream:handle=0x1356c08
2018-02-19 23:59:29.354 [ 10] 0 MessageInterpreter:receive:messageId=fa713b38-34c9-4307-bfa3-b053da7267dc:No dialogRequestId attached to message.
2018-02-19 23:59:29.355 [ 10] I DirectiveSequencer:onDirective:directive={"namespace\:"SpeechRecognizer"\,name\:"StopCapture"\,messageId\:"fa713b38-34c9-4307-bfa3-b053da7267dc"\,dialogRequestId\:""}
2018-02-19 23:59:29.356 [ 11] I DirectiveRouter:preHandleDirective:messageId=fa713b38-34c9-4307-bfa3-b053da7267dc,action=calling
2018-02-19 23:59:29.357 [ 11] 0 CapabilityAgent:addingMessageIdToMap:messageId=fa713b38-34c9-4307-bfa3-b053da7267dc
2018-02-19 23:59:29.358 [ 12] I DirectiveRouter:handleDirective:messageId=fa713b38-34c9-4307-bfa3-b053da7267dc,action=calling
2018-02-19 23:59:29.359 [  b] 0 AudioInputProcessor:stopCapture:stopImmediately=true
2018-02-19 23:59:29.359 [  b] 0 AudioInputProcessor:setState:from=RECOGNIZING,to=BUSY
2018-02-19 23:59:29.359 [  e] 0 DialogUXStateAggregator:setState:from=LISTENING,to=THINKING
###########################
#       Thinking...       #
###########################

2018-02-19 23:59:29.362 [  b] 0 DirectiveProcessor:onHandlingCompeted:messageId=fa713b38-34c9-4307-bfa3-b053da7267dc,directiveBeingPreHandled=(nullptr)
2018-02-19 23:59:29.363 [  b] 0 CapabilityAgent:removingMessageIdFromMap:messageId=fa713b38-34c9-4307-bfa3-b053da7267dc
2018-02-19 23:59:29.364 [  c] I InProcessAttachmentReader:readFailed:reason=SDS is closed
2018-02-19 23:59:29.735 [  c] 0 HTTP2Stream:receivedRequestId:value=x-amzn-requestid\: 0ac17bfffe3d2a78-0000140e-0000531c-e9ed373286e4ba71-d867b958-117
2018-02-19 23:59:29.737 [ 10] I DirectiveSequencer:onDirective:directive={"namespace\:"SpeechSynthesizer"\,name\:"Speak"\,messageId\:"50dcadd3-f9a6-45c3-b96d-d175c2125a68"\,dialogRequestId\:"2692ec81-55d5-404a-9af2-6901c0f984c0"}
2018-02-19 23:59:29.738 [ 11] I DirectiveRouter:preHandleDirective:messageId=50dcadd3-f9a6-45c3-b96d-d175c2125a68,action=calling
2018-02-19 23:59:29.739 [ 11] 0 CapabilityAgent:addingMessageIdToMap:messageId=50dcadd3-f9a6-45c3-b96d-d175c2125a68
2018-02-19 23:59:29.740 [ 11] 9 SpeechSynthesizer:preHandleDirective:messageId=50dcadd3-f9a6-45c3-b96d-d175c2125a68
2018-02-19 23:59:29.740 [  9] 0 SpeechSynthesizer:executePreHandle:messageId=50dcadd3-f9a6-45c3-b96d-d175c2125a68
2018-02-19 23:59:29.741 [ 12] I DirectiveRouter:handleDirective:messageId=50dcadd3-f9a6-45c3-b96d-d175c2125a68,action=calling
2018-02-19 23:59:29.741 [ 12] 9 SpeechSynthesizer:handleDirective:messageId=50dcadd3-f9a6-45c3-b96d-d175c2125a68
2018-02-19 23:59:29.743 [  c] 0 AudioInputProcessor:onSendCompleted:status=SUCCESS
2018-02-19 23:59:29.743 [  c] 0 HTTP2Transport:cleanupFinishedStream:streamId=5,result=200
2018-02-19 23:59:29.743 [  c] 0 HTTP2StreamPool:releaseStream:streamId=5,numAcquiredStreams=1
2018-02-19 23:59:29.744 [  9] 0 SpeechSynthesizer:executeHandle:messageId=50dcadd3-f9a6-45c3-b96d-d175c2125a68
2018-02-19 23:59:29.744 [  9] 1 FocusManager:acquireChannel:channelName=Dialog,activityId=SpeechSynthesizer.Speak
2018-02-19 23:59:29.745 [  f] 9 AudioInputProcessor:onFocusChanged:newFocus=NONE
2018-02-19 23:59:29.745 [  b] 0 AudioInputProcessor:executeOnFocusChanged:newFocus=NONE
2018-02-19 23:59:29.745 [  f] 0 SpeechSynthesizer:onFocusChanged:newFocus=FOREGROUND
2018-02-19 23:59:29.745 [  b] 0 AudioInputProcessor:executeOnFocusChanged:reason=Lost focus
2018-02-19 23:59:29.745 [  f] 9 SpeechSynthesizer:setCurrentStateLocked:state=GAINING_FOCUS
2018-02-19 23:59:29.745 [  b] 0 AudioInputProcessor:setState:from=BUSY,to=IDLE
2018-02-19 23:59:29.746 [  9] 0 SpeechSynthesizer:executeStateChange:newState=PLAYING
2018-02-19 23:59:29.746 [  9] 9 SpeechSynthesizer:startPlaying
2018-02-19 23:59:29.746 [  9] 9 MediaPlayer:setSourceCalled:sourceType=AttachmentReader
2018-02-19 23:59:29.746 [  2] 0 MediaPlayer:handleSetSourceCalled
2018-02-19 23:59:29.746 [  2] 9 MediaPlayer:tearDownTransientPipelineElements
2018-02-19 23:59:29.747 [  2] E MediaPlayer:saveOffsetBeforeTeardown - gst_element_query_position failed
2018-02-19 23:59:29.750 [  2] 9 BaseStreamSource:initNoAudioFormat
2018-02-19 23:59:29.784 [  9] 9 MediaPlayer:playCalled
2018-02-19 23:59:29.785 [  2] 0 MediaPlayer:handlePlayCalled:idPassed=1,currentId=1
2018-02-19 23:59:29.795 [  2] 9 AttachmentReaderSource:handleSeekData:offset=0
2018-02-19 23:59:29.795 [  2] 0 MediaPlayer:handlePlay:startingState=PLAYING,stateReturn=ASYNC
2018-02-19 23:59:29.796 [  2] 9 MediaPlayer:messageReceived:type=state-changed,source=audio_sink
2018-02-19 23:59:29.796 [  2] 9 MediaPlayer:messageReceived:type=state-changed,source=volume
2018-02-19 23:59:29.796 [  2] 9 MediaPlayer:messageReceived:type=state-changed,source=converter
2018-02-19 23:59:29.796 [  2] 9 MediaPlayer:messageReceived:type=state-changed,source=decodedQueue
2018-02-19 23:59:29.796 [  2] 9 MediaPlayer:messageReceived:type=state-changed,source=typefind
2018-02-19 23:59:29.796 [ 13] 9 BaseStreamSource:onNeedDataCalled:size=4096
2018-02-19 23:59:29.797 [  2] 9 MediaPlayer:messageReceived:type=state-changed,source=decoder
2018-02-19 23:59:29.797 [  2] 9 MediaPlayer:messageReceived:type=state-changed,source=src
2018-02-19 23:59:29.797 [  2] 9 MediaPlayer:messageReceived:type=state-changed,source=audio-pipeline
2018-02-19 23:59:29.797 [  2] 9 MediaPlayer:State Change:oldState=NULL,newState=READY,pendingState=PLAYING
2018-02-19 23:59:29.797 [  2] 9 MediaPlayer:messageReceived:type=state-changed,source=volume
2018-02-19 23:59:29.797 [  2] 9 MediaPlayer:messageReceived:type=state-changed,source=converter
2018-02-19 23:59:29.797 [  2] 9 MediaPlayer:messageReceived:type=stream-status,source=src
2018-02-19 23:59:29.798 [  2] 9 MediaPlayer:messageReceived:type=state-changed,source=decodedQueue
2018-02-19 23:59:29.798 [  2] 9 MediaPlayer:messageReceived:type=stream-status,source=src
2018-02-19 23:59:29.798 [  2] 9 MediaPlayer:messageReceived:type=state-changed,source=typefind
2018-02-19 23:59:29.798 [  2] 9 MediaPlayer:messageReceived:type=stream-status,source=src
2018-02-19 23:59:29.798 [  2] 9 MediaPlayer:messageReceived:type=state-changed,source=src
2018-02-19 23:59:29.798 [  2] 9 MediaPlayer:messageReceived:type=stream-status,source=src
2018-02-19 23:59:29.798 [  2] 9 BaseStreamSource:handleNeedDataCalled
2018-02-19 23:59:29.799 [  2] 9 BaseStreamSource:installOnReadDataHandler:action=newSourceId,sourceId=15
2018-02-19 23:59:29.799 [  2] 9 AttachmentReaderSource:read:size=4096,status=0
2018-02-19 23:59:29.799 [  2] 9 AttachmentReaderSource:read:size=269,status=0
2018-02-19 23:59:29.799 [  2] I InProcessAttachmentReader:readFailed:reason=SDS is closed
2018-02-19 23:59:29.799 [  2] 9 AttachmentReaderSource:read:size=0,status=3
2018-02-19 23:59:29.800 [  2] 9 AttachmentReaderSource:handleReadData:info=signalingEndOfData
2018-02-19 23:59:29.800 [  2] 9 BaseStreamSource:signalEndOfDataCalled
2018-02-19 23:59:29.800 [  2] 9 BaseStreamSource:gstAppSrcEndOfStreamSuccess
2018-02-19 23:59:29.801 [  2] 9 BaseStreamSource:clearOnReadDataHandlerCalled:sourceId=15
2018-02-19 23:59:29.819 [  2] 9 MediaPlayer:messageReceived:type=state-changed,source=id3demux0
2018-02-19 23:59:29.819 [  2] 9 MediaPlayer:messageReceived:type=state-changed,source=id3demux0
2018-02-19 23:59:29.819 [ 13] 9 BaseStreamSource:onNeedDataCalled:size=4096
2018-02-19 23:59:29.819 [  2] 9 BaseStreamSource:handleNeedDataCalled
2018-02-19 23:59:29.824 [  2] 9 MediaPlayer:messageReceived:type=state-changed,source=mpegaudioparse0
2018-02-19 23:59:29.825 [  2] 9 MediaPlayer:messageReceived:type=state-changed,source=mpegaudioparse0
2018-02-19 23:59:29.826 [  2] 9 MediaPlayer:messageReceived:type=element,source=decoder
2018-02-19 23:59:29.826 [  2] 9 MediaPlayer:messageReceived:type=error,source=decoder
2018-02-19 23:59:29.826 [  2] E MediaPlayer:handleBusMessageError:source=decoder,error=Your GStreamer installation is missing a plug-in.,debug=gstdecodebin2.c(4592)\: gst_decode_bin_expose ()\: /GstPipeline\:audio-pipeline/GstDecodeBin\:decoder\:
no suitable plugins found\:
Missing decoder\: MPEG-1 Layer 3 (MP3) (audio/mpeg\, mpegversion\=(int)1\, mpegaudioversion\=(int)2\, layer\=(int)3\, rate\=(int)24000\, channels\=(int)1\, parsed\=(boolean)true)

2018-02-19 23:59:29.827 [  2] 0 MediaPlayer:callingOnPlaybackError:type=MEDIA_ERROR_INTERNAL_DEVICE_ERROR,error=Your GStreamer installation is missing a plug-in.,currentId=1
2018-02-19 23:59:29.827 [  2] 9 SpeechSynthesizer:onPlaybackError:callbackSourceId=1
2018-02-19 23:59:29.827 [  2] 9 MediaPlayer:tearDownTransientPipelineElements
2018-02-19 23:59:29.827 [  9] 0 SpeechSynthesizer:executePlaybackError:type=MEDIA_ERROR_INTERNAL_DEVICE_ERROR,error=Your GStreamer installation is missing a plug-in.
2018-02-19 23:59:29.827 [  9] 9 SpeechSynthesizer:setCurrentStateLocked:state=FINISHED
2018-02-19 23:59:29.827 [  9] 0 SpeechSynthesizer:executeProvideState:stateRequestToken=0
2018-02-19 23:59:29.827 [  2] E MediaPlayer:saveOffsetBeforeTeardown - gst_element_query_position failed
2018-02-19 23:59:29.827 [  2] 9 BaseStreamSource:~BaseStreamSource
2018-02-19 23:59:29.827 [  9] 0 ContextManager:updateStateLocked:action=updatedState,namespace=SpeechSynthesizer,name=SpeechState
2018-02-19 23:59:29.828 [  9] 9 SpeechSynthesizer:releaseForegroundFocus
2018-02-19 23:59:29.828 [  9] 1 FocusManager:releaseChannel:channelName=Dialog
2018-02-19 23:59:29.828 [  9] 0 CapabilityAgent:removingMessageIdFromMap:messageId=50dcadd3-f9a6-45c3-b96d-d175c2125a68
2018-02-19 23:59:29.829 [  9] 0 EventBuilder:buildJsonEventString:messageId=dfa95511-2242-4eb5-83f3-27d9964ec1f6,namespace=System,name=ExceptionEncountered
2018-02-19 23:59:29.830 [  9] 9 HTTP2Transport:enqueueRequest
2018-02-19 23:59:29.830 [  9] 0 DirectiveProcessor:onHandlingFailed:messageId=50dcadd3-f9a6-45c3-b96d-d175c2125a68,directiveBeingPreHandled=(nullptr),description=Your GStreamer installation is missing a plug-in.
2018-02-19 23:59:29.830 [  9] 0 DirectiveProcessor:scrubDialogRequestIdLocked:dialogRequestId=2692ec81-55d5-404a-9af2-6901c0f984c0
2018-02-19 23:59:29.830 [  9] 0 CapabilityAgent:removingMessageIdFromMap:messageId=50dcadd3-f9a6-45c3-b96d-d175c2125a68
2018-02-19 23:59:29.844 [  c] 0 HTTP2Transport:processNextOutgoingMessage
2018-02-19 23:59:29.844 [  c] 0 HTTP2StreamPool:getStream:streamId=7,numAcquiredStreams=2
2018-02-19 23:59:29.844 [  c] 9 HTTP2Transport:insertActiveStream:handle=0x1356c08
2018-02-19 23:59:29.927 [  c] 0 HTTP2Stream:receivedRequestId:value=x-amzn-requestid\: 0ac17bfffe3d2a78-0000140e-00005f25-00790a060840dcd6-5adfae20-7
2018-02-19 23:59:29.927 [  c] 0 HTTP2Transport:cleanupFinishedStream:streamId=7,result=204
2018-02-19 23:59:29.928 [  c] 0 HTTP2StreamPool:releaseStream:streamId=7,numAcquiredStreams=1
2018-02-19 23:59:29.928 [  c] 0 CurlEasyHandleWrapper:reset:responseCode=HTTP_RESPONSE_SUCCESS_NO_CONTENT
2018-02-19 23:59:30.029 [  e] 0 DialogUXStateAggregator:setState:from=THINKING,to=IDLE
########################################
#       Alexa is currently idle!       #
########################################

2018-02-19 23:59:34.746 [  f] E SpeechSynthesizer:onFocusChangeFailed:reason=stateChangeTimeout,messageId=50dcadd3-f9a6-45c3-b96d-d175c2125a68
2018-02-19 23:59:34.746 [  f] 0 SpeechSynthesizer:onFocusChanged:newFocus=NONE

No output yet :(

Some errors here: image Seems like the issue is related to this ...Your GStreamer installation is missing a plug-in....

Also here is the output of gst-inspect-1.0:

pi at alexa-sdk in ~ 
$ gst-inspect-1.0
alsa:  alsasrc: Audio source (ALSA)
alsa:  alsasink: Audio sink (ALSA)
alsa:  alsamidisrc: AlsaMidi Source
multifile:  splitmuxsrc: Split File Demuxing Bin
multifile:  splitmuxsink: Split Muxing Bin
multifile:  splitfilesrc: Split-File Source
multifile:  multifilesink: Multi-File Sink
multifile:  multifilesrc: Multi-File Source
multipart:  multipartmux: Multipart muxer
multipart:  multipartdemux: Multipart demuxer
auparse:  auparse: AU audio demuxer
alaw:  alawdec: A Law audio decoder
alaw:  alawenc: A Law audio encoder
wavenc:  wavenc: WAV audio muxer
audioconvert:  audioconvert: Audio converter
y4menc:  y4menc: YUV4MPEG video encoder
shout2send:  shout2send: Icecast network sink
volume:  volume: Volume
gdkpixbuf:  gdkpixbufsink: GdkPixbuf sink
gdkpixbuf:  gdkpixbufoverlay: GdkPixbuf Overlay
gdkpixbuf:  gdkpixbufdec: GdkPixbuf image decoder
shapewipe:  shapewipe: Shape Wipe transition filter
audiorate:  audiorate: Audio rate adjuster
gio:  giostreamsrc: GIO stream source
gio:  giostreamsink: GIO stream sink
gio:  giosrc: GIO source
gio:  giosink: GIO sink
coretracers:  leaks (GstTracerFactory)
coretracers:  stats (GstTracerFactory)
coretracers:  rusage (GstTracerFactory)
coretracers:  log (GstTracerFactory)
coretracers:  latency (GstTracerFactory)
spectrum:  spectrum: Spectrum analyzer
audioresample:  audioresample: Audio resampler
level:  level: Level
rtsp:  rtpdec: RTP Decoder
rtsp:  rtspsrc: RTSP packet receiver
videofilter:  videomedian: Median effect
videofilter:  videoflip: Video flipper
videofilter:  videobalance: Video balance
videofilter:  gamma: Video gamma correction
encoding:  encodebin: Encoder Bin
equalizer:  equalizer-10bands: 10 Band Equalizer
equalizer:  equalizer-3bands: 3 Band Equalizer
equalizer:  equalizer-nbands: N Band Equalizer
debug:  cpureport: CPU report
debug:  testsink: Test plugin
debug:  taginject: TagInject
debug:  progressreport: Progress report
debug:  pushfilesrc: Push File Source
debug:  navseek: Seek based on left-right arrows
debug:  rndbuffersize: Random buffer size
debug:  capssetter: CapsSetter
debug:  breakmydata: Break my data
vorbis:  vorbistag: VorbisTag
vorbis:  vorbisparse: VorbisParse
vorbis:  vorbisdec: Vorbis audio decoder
vorbis:  vorbisenc: Vorbis audio encoder
goom:  goom: GOOM: what a GOOM!
videorate:  videorate: Video rate adjuster
oss4:  oss4src: OSS v4 Audio Source
oss4:  oss4sink: OSS v4 Audio Sink
ossaudio:  osssink: Audio Sink (OSS)
ossaudio:  osssrc: Audio Source (OSS)
isomp4:  qtmoovrecover: QT Moov Recover
isomp4:  mj2mux: MJ2 Muxer
isomp4:  3gppmux: 3GPP Muxer
isomp4:  ismlmux: ISML Muxer
isomp4:  mp4mux: MP4 Muxer
isomp4:  qtmux: QuickTime Muxer
isomp4:  rtpxqtdepay: RTP packet depayloader
isomp4:  qtdemux: QuickTime demuxer
icydemux:  icydemux: ICY tag demuxer
udp:  udpsrc: UDP packet receiver
udp:  dynudpsink: UDP packet sender
udp:  multiudpsink: UDP packet sender
udp:  udpsink: UDP packet sender
tcp:  multisocketsink: Multi socket sink
tcp:  multifdsink: Multi filedescriptor sink
tcp:  tcpserversrc: TCP server source
tcp:  tcpserversink: TCP server sink
tcp:  tcpclientsrc: TCP client source
tcp:  tcpclientsink: TCP client sink
tcp:  socketsrc: socket source
videoconvert:  videoconvert: Colorspace converter
wavpack:  wavpackenc: Wavpack audio encoder
wavpack:  wavpackdec: Wavpack audio decoder
aasink:  aasink: ASCII art video sink
dv:  dvdec: DV video decoder
dv:  dvdemux: DV system stream demuxer
autodetect:  autoaudiosrc: Auto audio source
autodetect:  autoaudiosink: Auto audio sink
autodetect:  autovideosrc: Auto video source
autodetect:  autovideosink: Auto video sink
videocrop:  aspectratiocrop: aspectratiocrop
videocrop:  videocrop: Crop
flxdec:  flxdec: FLX video decoder
soup:  souphttpclientsink: HTTP client sink
soup:  souphttpsrc: HTTP client source
audioparsers:  wavpackparse: Wavpack audio stream parser
audioparsers:  sbcparse: SBC audio parser
audioparsers:  mpegaudioparse: MPEG1 Audio Parser
audioparsers:  flacparse: FLAC audio parser
audioparsers:  dcaparse: DTS Coherent Acoustics audio stream parser
audioparsers:  ac3parse: AC3 audio stream parser
audioparsers:  amrparse: AMR audio stream parser
audioparsers:  aacparse: AAC audio stream parser
matroska:  webmmux: WebM muxer
matroska:  matroskamux: Matroska muxer
matroska:  matroskaparse: Matroska parser
matroska:  matroskademux: Matroska demuxer
rtp:  rtpstreamdepay: RTP Stream Depayloading
rtp:  rtpstreampay: RTP Stream Payloading
rtp:  rtpvrawpay: RTP Raw Video payloader
rtp:  rtpvrawdepay: RTP Raw Video depayloader
rtp:  rtpvp9pay: RTP VP9 payloader
rtp:  rtpvp9depay: RTP VP9 depayloader
rtp:  rtpvp8pay: RTP VP8 payloader
rtp:  rtpvp8depay: RTP VP8 depayloader
rtp:  rtpvorbispay: RTP Vorbis payloader
rtp:  rtpvorbisdepay: RTP Vorbis depayloader
rtp:  rtptheorapay: RTP Theora payloader
rtp:  rtptheoradepay: RTP Theora depayloader
rtp:  rtpsv3vdepay: RTP SVQ3 depayloader
rtp:  rtpspeexdepay: RTP Speex depayloader
rtp:  rtpspeexpay: RTP Speex payloader
rtp:  rtpsirendepay: RTP Siren packet depayloader
rtp:  rtpsirenpay: RTP Payloader for Siren Audio
rtp:  rtpsbcpay: RTP packet payloader
rtp:  rtpsbcdepay: RTP SBC audio depayloader
rtp:  rtpqdm2depay: RTP QDM2 depayloader
rtp:  rtpqcelpdepay: RTP QCELP depayloader
rtp:  rtpmp4gpay: RTP MPEG4 ES payloader
rtp:  rtpmp4gdepay: RTP MPEG4 ES depayloader
rtp:  rtpmp4adepay: RTP MPEG4 audio depayloader
rtp:  rtpmp4apay: RTP MPEG4 audio payloader
rtp:  rtpmp4vdepay: RTP MPEG4 video depayloader
rtp:  rtpmp4vpay: RTP MPEG4 Video payloader
rtp:  rtpmp2tpay: RTP MPEG2 Transport Stream payloader
rtp:  rtpmp2tdepay: RTP MPEG Transport Stream depayloader
rtp:  rtpmp1sdepay: RTP MPEG1 System Stream depayloader
rtp:  asteriskh263: RTP Asterisk H263 depayloader
rtp:  rtpL24depay: RTP audio depayloader
rtp:  rtpL24pay: RTP audio payloader
rtp:  rtpL16depay: RTP audio depayloader
rtp:  rtpL16pay: RTP audio payloader
rtp:  rtpklvpay: RTP KLV Payloader
rtp:  rtpklvdepay: RTP KLV Depayloader
rtp:  rtpjpegpay: RTP JPEG payloader
rtp:  rtpjpegdepay: RTP JPEG depayloader
rtp:  rtpj2kpay: RTP JPEG 2000 payloader
rtp:  rtpj2kdepay: RTP JPEG 2000 depayloader
rtp:  rtph265pay: RTP H265 payloader
rtp:  rtph265depay: RTP H265 depayloader
rtp:  rtph264pay: RTP H264 payloader
rtp:  rtph264depay: RTP H264 depayloader
rtp:  rtph263pay: RTP H263 packet payloader
rtp:  rtph263depay: RTP H263 depayloader
rtp:  rtph263pdepay: RTP H263 depayloader
rtp:  rtph263ppay: RTP H263 payloader
rtp:  rtph261depay: RTP H261 depayloader
rtp:  rtph261pay: RTP H261 packet payloader
rtp:  rtpopuspay: RTP Opus payloader
rtp:  rtpopusdepay: RTP Opus packet depayloader
rtp:  rtpmpvpay: RTP MPEG2 ES video payloader
rtp:  rtpmpvdepay: RTP MPEG video depayloader
rtp:  rtpmparobustdepay: RTP MPEG audio depayloader
rtp:  rtpmpapay: RTP MPEG audio payloader
rtp:  rtpmpadepay: RTP MPEG audio depayloader
rtp:  rtppcmapay: RTP PCMA payloader
rtp:  rtppcmupay: RTP PCMU payloader
rtp:  rtppcmudepay: RTP PCMU depayloader
rtp:  rtppcmadepay: RTP PCMA depayloader
rtp:  rtpamrpay: RTP AMR payloader
rtp:  rtpamrdepay: RTP AMR depayloader
rtp:  rtpgsmpay: RTP GSM payloader
rtp:  rtpgsmdepay: RTP GSM depayloader
rtp:  rtpg729pay: RTP G.729 payloader
rtp:  rtpg729depay: RTP G.729 depayloader
rtp:  rtpg726pay: RTP G.726 payloader
rtp:  rtpg726depay: RTP G.726 depayloader
rtp:  rtpg723pay: RTP G.723 payloader
rtp:  rtpg723depay: RTP G.723 depayloader
rtp:  rtpg722pay: RTP audio payloader
rtp:  rtpg722depay: RTP audio depayloader
rtp:  rtpilbcdepay: RTP iLBC depayloader
rtp:  rtpilbcpay: RTP iLBC Payloader
rtp:  rtpgstpay: RTP GStreamer payloader
rtp:  rtpgstdepay: GStreamer depayloader
rtp:  rtpdvpay: RTP DV Payloader
rtp:  rtpdvdepay: RTP DV Depayloader
rtp:  rtpceltpay: RTP CELT payloader
rtp:  rtpceltdepay: RTP CELT depayloader
rtp:  rtpbvpay: RTP BV Payloader
rtp:  rtpbvdepay: RTP BroadcomVoice depayloader
rtp:  rtpac3pay: RTP AC3 audio payloader
rtp:  rtpac3depay: RTP AC3 depayloader
app:  appsink: AppSink
app:  appsrc: AppSrc
video4linux2:  v4l2deviceprovider (GstDeviceProviderFactory)
video4linux2:  v4l2radio: Radio (video4linux2) Tuner
video4linux2:  v4l2sink: Video (video4linux2) Sink
video4linux2:  v4l2src: Video (video4linux2) Source
png:  pngenc: PNG image encoder
png:  pngdec: PNG image decoder
avi:  avisubtitle: Avi subtitle parser
avi:  avimux: Avi muxer
avi:  avidemux: Avi demuxer
audiofx:  scaletempo: Scaletempo
audiofx:  audioecho: Audio echo
audiofx:  audiofirfilter: Audio FIR filter
audiofx:  audiowsincband: Band pass & band reject filter
audiofx:  audiowsinclimit: Low pass & high pass filter
audiofx:  audioiirfilter: Audio IIR filter
audiofx:  audiochebband: Band pass & band reject filter
audiofx:  audiocheblimit: Low pass & high pass filter
audiofx:  audiodynamic: Dynamic range controller
audiofx:  audioamplify: Audio amplifier
audiofx:  audiokaraoke: AudioKaraoke
audiofx:  audioinvert: Audio inversion
audiofx:  audiopanorama: Stereo positioning
taglib:  apev2mux: TagLib-based APEv2 Muxer
taglib:  id3v2mux: TagLib-based ID3v2 Muxer
speex:  speexdec: Speex audio decoder
speex:  speexenc: Speex audio encoder
apetag:  apedemux: APE tag demuxer
typefindfunctions: audio/audible: aa, aax
typefindfunctions: audio/x-xi: xi
typefindfunctions: video/x-pva: pva
typefindfunctions: application/x-ssa: ssa, ass
typefindfunctions: application/octet-stream: no extensions
typefindfunctions: image/x-degas: no extensions
typefindfunctions: image/x-icon: no extensions
typefindfunctions: application/x-yuv4mpeg: no extensions
typefindfunctions: image/vnd.wap.wbmp: no extensions
typefindfunctions: image/vnd.adobe.photoshop: psd
typefindfunctions: application/msword: doc
typefindfunctions: application/pdf: pdf
typefindfunctions: audio/x-kss: kss
typefindfunctions: video/x-ivf: ivf
typefindfunctions: audio/x-sap: sap
typefindfunctions: audio/x-vgm: vgm
typefindfunctions: audio/x-gbs: gbs
typefindfunctions: audio/x-ay: ay
typefindfunctions: audio/x-gym: gym
typefindfunctions: audio/x-nsf: nsf
typefindfunctions: video/vivo: viv
typefindfunctions: application/x-mmsh: no extensions
typefindfunctions: multipart/x-mixed-replace: no extensions
typefindfunctions: video/x-dirac: no extensions
typefindfunctions: application/x-ms-dos-executable: dll, exe, ocx, sys, scr, msstyles, cpl
typefindfunctions: application/x-ar: a
typefindfunctions: application/x-tar: tar
typefindfunctions: application/x-rar: rar
typefindfunctions: image/svg+xml: svg
typefindfunctions: application/postscript: ps
typefindfunctions: audio/x-caf: caf
typefindfunctions: audio/x-wavpack-correction: wvc
typefindfunctions: audio/x-wavpack: wv, wvp
typefindfunctions: audio/x-spc: spc
typefindfunctions: audio/aac: aac, adts, adif, loas
typefindfunctions: application/x-executable: no extensions
typefindfunctions: text/x-cmml: no extensions
typefindfunctions: application/x-ogg-skeleton: no extensions
typefindfunctions: audio/x-celt: no extensions
typefindfunctions: audio/x-speex: no extensions
typefindfunctions: application/x-ogm-text: no extensions
typefindfunctions: application/x-ogm-audio: no extensions
typefindfunctions: application/x-ogm-video: no extensions
typefindfunctions: video/x-theora: no extensions
typefindfunctions: audio/x-vorbis: no extensions
typefindfunctions: audio/x-flac: flac
typefindfunctions: application/x-subtitle-vtt: vtt
typefindfunctions: subtitle/x-kate: no extensions
typefindfunctions: application/x-compress: Z
typefindfunctions: application/zip: zip
typefindfunctions: application/x-gzip: gz
typefindfunctions: application/x-bzip: bz2
typefindfunctions: image/x-sun-raster: ras
typefindfunctions: image/x-xpixmap: xpm
typefindfunctions: image/x-jng: jng
typefindfunctions: video/x-mng: mng
typefindfunctions: image/x-xcf: xcf
typefindfunctions: audio/x-sid: sid
typefindfunctions: audio/x-sbc: sbc
typefindfunctions: audio/iLBC-sh: ilbc
typefindfunctions: audio/x-amr-wb-sh: amr
typefindfunctions: audio/x-amr-nb-sh: amr
typefindfunctions: video/x-dv: dv, dif
typefindfunctions: video/x-mve: mve
typefindfunctions: application/mxf: mxf
typefindfunctions: video/x-matroska: mkv, mka, mk3d, webm
typefindfunctions: image/x-portable-pixmap: pnm, ppm, pgm, pbm
typefindfunctions: image/x-exr: exr
typefindfunctions: image/webp: webp
typefindfunctions: image/tiff: tif, tiff
typefindfunctions: image/bmp: bmp
typefindfunctions: image/png: png
typefindfunctions: image/gif: gif
typefindfunctions: image/jpeg: jpg, jpe, jpeg
typefindfunctions: application/x-ape: ape
typefindfunctions: audio/x-shorten: shn
typefindfunctions: audio/x-rf64: rf64
typefindfunctions: audio/x-w64: w64
typefindfunctions: audio/x-ircam: sf
typefindfunctions: audio/x-sds: sds
typefindfunctions: audio/x-voc: voc
typefindfunctions: audio/x-nist: nist
typefindfunctions: audio/x-paris: paf
typefindfunctions: audio/x-svx: iff, svx
typefindfunctions: audio/x-aiff: aiff, aif, aifc
typefindfunctions: audio/x-wav: wav
typefindfunctions: application/xml: xml
typefindfunctions: application/ttml+xml: ttml+xml
typefindfunctions: application/smil: smil
typefindfunctions: application/sdp: sdp
typefindfunctions: application/x-hls: m3u8
typefindfunctions: text/uri-list: ram
typefindfunctions: text/utf-32: txt
typefindfunctions: text/utf-16: txt
typefindfunctions: text/plain: txt
typefindfunctions: video/x-flv: flv
typefindfunctions: application/vnd.ms-sstr+xml: no extensions
typefindfunctions: application/dash+xml: mpd, MPD
typefindfunctions: application/x-shockwave-flash: swf, swfl
typefindfunctions: application/x-pn-realaudio: ra, ram, rm, rmvb
typefindfunctions: application/vnd.rn-realmedia: ra, ram, rm, rmvb
typefindfunctions: text/html: htm, html
typefindfunctions: video/mj2: mj2
typefindfunctions: image/jp2: jp2
typefindfunctions: image/x-quicktime: qif, qtif, qti
typefindfunctions: video/quicktime: mov, mp4
typefindfunctions: application/x-3gp: 3gp
typefindfunctions: audio/x-m4a: m4a
typefindfunctions: video/x-nuv: nuv
typefindfunctions: video/x-h265: h265, x265, 265
typefindfunctions: video/x-h264: h264, x264, 264
typefindfunctions: video/x-h263: h263, 263
typefindfunctions: video/mpeg4: m4v
typefindfunctions: video/mpeg-elementary: mpv, mpeg, mpg
typefindfunctions: application/ogg: ogg, oga, ogv, ogm, ogx, spx, anx, axa, axv
typefindfunctions: video/mpegts: ts, mts
typefindfunctions: video/mpeg-sys: mpe, mpeg, mpg
typefindfunctions: audio/x-gsm: gsm
typefindfunctions: audio/x-dts: dts
typefindfunctions: audio/x-ac3: ac3, eac3
typefindfunctions: audio/mpeg: mp3, mp2, mp1, mpga
typefindfunctions: audio/x-mod: 669, amf, ams, dbm, digi, dmf, dsm, gdm, far, imf, it, j2b, mdl, med, mod, mt2, mtm, okt, psm, ptm, sam, s3m, stm, stx, ult, umx, xm
typefindfunctions: audio/x-ttafile: tta
typefindfunctions: application/x-apetag: mp3, ape, mpc, wv
typefindfunctions: application/x-id3v1: mp3, mp2, mp1, mpga, ogg, flac, tta
typefindfunctions: application/x-id3v2: mp3, mp2, mp1, mpga, ogg, flac, tta
typefindfunctions: video/x-fli: flc, fli
typefindfunctions: audio/mobile-xmf: mxmf
typefindfunctions: audio/riff-midi: mid, midi
typefindfunctions: audio/midi: mid, midi
typefindfunctions: audio/x-imelody: imy, ime, imelody
typefindfunctions: video/x-vcd: dat
typefindfunctions: video/x-cdxa: dat
typefindfunctions: audio/qcelp: qcp
typefindfunctions: video/x-msvideo: avi
typefindfunctions: audio/x-au: au, snd
typefindfunctions: audio/x-musepack: mpc, mpp, mp+
typefindfunctions: video/x-ms-asf: asf, wm, wma, wmv
adder:  adder: Adder
dtmf:  rtpdtmfdepay: RTP DTMF packet depayloader
dtmf:  rtpdtmfsrc: RTP DTMF packet generator
dtmf:  dtmfsrc: DTMF tone generator
interleave:  deinterleave: Audio deinterleaver
interleave:  interleave: Audio interleaver
effectv:  rippletv: RippleTV effect
effectv:  streaktv: StreakTV effect
effectv:  radioactv: RadioacTV effect
effectv:  optv: OpTV effect
effectv:  quarktv: QuarkTV effect
effectv:  revtv: RevTV effect
effectv:  vertigotv: VertigoTV effect
effectv:  shagadelictv: ShagadelicTV
effectv:  warptv: WarpTV effect
effectv:  dicetv: DiceTV effect
effectv:  agingtv: AgingTV effect
effectv:  edgetv: EdgeTV effect
ogg:  oggaviparse: Ogg AVI parser
ogg:  oggparse: Ogg parser
ogg:  ogmtextparse: OGM text stream parser
ogg:  ogmvideoparse: OGM video stream parser
ogg:  ogmaudioparse: OGM audio stream parser
ogg:  oggmux: Ogg muxer
ogg:  oggdemux: Ogg demuxer
flv:  flvmux: FLV muxer
flv:  flvdemux: FLV Demuxer
videotestsrc:  videotestsrc: Video test source
alphacolor:  alphacolor: Alpha color filter
xvimagesink:  xvimagesink: Video sink
videomixer:  videomixer: Video mixer 2
navigationtest:  navigationtest: Video navigation test
jack:  jackaudiosink: Audio Sink (Jack)
jack:  jackaudiosrc: Audio Source (Jack)
audiotestsrc:  audiotestsrc: Audio test source
ximagesrc:  ximagesrc: Ximage video source
mulaw:  mulawdec: Mu Law audio decoder
mulaw:  mulawenc: Mu Law audio encoder
videobox:  videobox: Video box filter
jpeg:  jpegdec: JPEG image decoder
jpeg:  jpegenc: JPEG image encoder
goom2k1:  goom2k1: GOOM: what a GOOM! 2k1 edition
replaygain:  rgvolume: ReplayGain volume
replaygain:  rglimiter: ReplayGain limiter
replaygain:  rganalysis: ReplayGain analysis
vpx:  vp9enc: On2 VP9 Encoder
vpx:  vp9dec: On2 VP9 Decoder
vpx:  vp8enc: On2 VP8 Encoder
vpx:  vp8dec: On2 VP8 Decoder
rtpmanager:  rtpdtmfmux: RTP muxer
rtpmanager:  rtpmux: RTP muxer
rtpmanager:  rtpssrcdemux: RTP SSRC Demux
rtpmanager:  rtprtxsend: RTP Retransmission Sender
rtpmanager:  rtprtxreceive: RTP Retransmission receiver
rtpmanager:  rtprtxqueue: RTP Retransmission Queue
rtpmanager:  rtpsession: RTP Session
rtpmanager:  rtpptdemux: RTP Demux
rtpmanager:  rtpjitterbuffer: RTP packet jitter-buffer
rtpmanager:  rtpbin: RTP Bin
alpha:  alpha: Alpha filter
flac:  flactag: FLAC tagger
flac:  flacdec: FLAC audio decoder
flac:  flacenc: FLAC audio encoder
pango:  textrender: Text renderer
pango:  clockoverlay: Clock overlay
pango:  timeoverlay: Time overlay
pango:  textoverlay: Text overlay
videoscale:  videoscale: Video scaler
deinterlace:  deinterlace: Deinterlacer
monoscope:  monoscope: Monoscope
imagefreeze:  imagefreeze: Still frame stream generator
subparse:  ssaparse: SSA Subtitle Parser
subparse:  subparse: Subtitle parser
subparse: subparse_typefind: srt, sub, mpsub, mdvd, smi, txt, dks, vtt
coreelements:  streamiddemux: Streamid Demux
coreelements:  valve: Valve element
coreelements:  multiqueue: MultiQueue
coreelements:  typefind: TypeFind
coreelements:  tee: Tee pipe fitting
coreelements:  filesink: File Sink
coreelements:  queue2: Queue 2
coreelements:  queue: Queue
coreelements:  output-selector: Output selector
coreelements:  input-selector: Input selector
coreelements:  identity: Identity
coreelements:  funnel: Funnel pipe fitting
coreelements:  filesrc: File Source
coreelements:  fdsink: Filedescriptor Sink
coreelements:  fdsrc: Filedescriptor Source
coreelements:  fakesink: Fake Sink
coreelements:  fakesrc: Fake Source
coreelements:  downloadbuffer: DownloadBuffer
coreelements:  concat: Concat
coreelements:  capsfilter: CapsFilter
cacasink:  cacasink: A colored ASCII art video sink
opus:  opusdec: Opus audio decoder
opus:  opusenc: Opus audio encoder
cdparanoia:  cdparanoiasrc: CD Audio (cdda) Source, Paranoia IV
1394:  hdv1394src: Firewire (1394) HDV video source
1394:  dv1394src: Firewire (1394) DV video source
theora:  theoraparse: Theora video parser
theora:  theoraenc: Theora video encoder
theora:  theoradec: Theora video decoder
wavparse:  wavparse: WAV audio demuxer
ximagesink:  ximagesink: Video sink
smpte:  smptealpha: SMPTE transitions
smpte:  smpte: SMPTE transitions
cutter:  cutter: Audio cutter
cairo:  cairooverlay: Cairo overlay
playback:  parsebin: Parse Bin
playback:  urisourcebin: URI reader
playback:  uridecodebin: URI Decoder
playback:  decodebin3: Decoder Bin 3
playback:  decodebin: Decoder Bin
playback:  streamsynchronizer: Stream Synchronizer
playback:  subtitleoverlay: Subtitle Overlay
playback:  playsink: Player Sink
playback:  playbin3: Player Bin 3
playback:  playbin: Player Bin 2
id3demux:  id3demux: ID3 tag demuxer
staticelements:  bin: Generic bin
staticelements:  pipeline: Pipeline object

Total count: 96 plugins, 486 features

Sorry about the huge post, Thank you in advance.

yoelrc88 commented 6 years ago

Anyone that can help here?

mavamazon commented 6 years ago

Hi Yoel! In your case - could you please make sure that all of those are installed: gst-plugins-base gst-plugins-good gst-plugins-bad

Also, in case it didn't help, try to install gst-plugins-ugly as well.

mavamazon commented 6 years ago

@jguerreiro,

Could you please provide the output requested or let us know if problem is already solved?

a2ron commented 6 years ago

I had the same problem, now solved. Ensure you can reproduce commands/configurations below:

You should be able to reproduce a mp3 file like below:

wget https://www.soundhelix.com/examples/mp3/SoundHelix-Song-1.mp3
mpg123 SoundHelix-Song-1.mp3

You should hear a beep when executing:

gst-launch-1.0 -m audiotestsrc ! alsasink

I had to install the following packages first. sudo apt install gstreamer1.0-tools gstreamer1.0-alsa

My .asoundrc file (jack for audio, usb for micro)

pcm.!default {
  type asym
   playback.pcm {
     type plug
     slave.pcm "hw:0,0"
   }
   capture.pcm {
     type plug
     slave.pcm "hw:1,0"
   }
}
vishnudevk commented 6 years ago

In my case audio is always directed to HDMI.
All other applications including aplay send audio to 3.5 jack. But sampleapp always send audio to HDMI.

What change I should make for redirecting audio to 3.5 jack?

jazzkitt commented 6 years ago

@vishnudevk have the same question, leaving a comment to receive update when someone replies. Thanks in advance. Also changing audio output using sudo raspi-config doesn't change anything.

mavamazon commented 6 years ago

@vishnudevk, @jazzkitt,

You can try to modify boot/config.txt: comment out the following line: hdmi_force_hotplug=1 and then reboot and try if SDK plays audio to correct output. Also you can change the line in MediaPlayer.cpp, so that instead of:

m_pipeline.audioSink = gst_element_factory_make("autoaudiosink", "audio_sink");

you have:

m_pipeline.audioSink = gst_element_factory_make("alsasink", "audio_sink");

a2ron commented 6 years ago

other issue I had it was volume was 0 when rebooting, so I added a crontab:

@reboot amixer set Master 65536
vishnudevk commented 6 years ago

@mavamazon Changing m_pipeline.audioSink = gst_element_factory_make("autoaudiosink", "audio_sink"); to m_pipeline.audioSink = gst_element_factory_make("alsasink", "audio_sink");

Worked for me. Thank you very much !!

davorf commented 6 years ago

Hello!

I've had similar problem with USB Speaker/Microphone combo (handsfree). Microphone was working fine, but all the sounds (Alexa Speech) were redirected to HDMI. Since this is single USB device, both microphone and speaker were CARD 1 (aplay -l). Changing default sound card in Raspbian worked with aplay, but not with Alexa. The only solution that worked for me was changing part of the setup.sh script, namely, changing:

cat << EOF > "$SOUND_CONFIG"
pcm.!default {
  type asym
   playback.pcm {
     type plug
     slave.pcm "hw:0,0"
   }
   capture.pcm {
     type plug
     slave.pcm "hw:1,0"
   }
}
EOF

to

cat << EOF > "$SOUND_CONFIG"
pcm.!default {
  type asym
   playback.pcm {
     type plug
     slave.pcm "hw:1,0"
   }
   capture.pcm {
     type plug
     slave.pcm "hw:1,0"
   }
}
EOF

After that change, you need to run sudo bash setup.sh config.txt again (delete any previously created folders/files, so setup would be executed from the begining).

Best regards, Davor

kencecka commented 6 years ago

Hi All,

There are a number of good suggestions and success stories that have accumulated on this thread. It's a little unclear who still has issues as there have been multiple users posting here. I'm going to go ahead and close this issue; please post a new issue if you are still having problems and we will continue to troubleshoot.

Ken

mmjee commented 6 years ago

For me the problem got solved by installing: gstreamer1.0-fluendo-mp3

Likhitha11 commented 4 years ago

Hi. I know the issue has been long closed but I've recently started working with the AVS Sample app. I face the same issue of not being able to send and receive audio through my desired sound card which is a DSP connected to the raspberry pi. After changes in MediaPlayer.cpp, the output is now given from the desired sound card while the problem persists with capturing the audio as in it still takes the audio from the other device. Can you please tell me how I can go ahead? I've tried making changes in pi.sh, asoundrc and thirdparty/alexa-rpi/config/asound.conf. Sadly nothing seems to work..I've been trying to do this for a long time now. Kindly help. Thank you

antonjudes commented 4 years ago

Hi. I know the issue has been long closed but I've recently started working with the AVS Sample app. I face the same issue of not being able to send and receive audio through my desired sound card which is a DSP connected to the raspberry pi. After changes in MediaPlayer.cpp, the output is now given from the desired sound card while the problem persists with capturing the audio as in it still takes the audio from the other device. Can you please tell me how I can go ahead? I've tried making changes in pi.sh, asoundrc and thirdparty/alexa-rpi/config/asound.conf. Sadly nothing seems to work..I've been trying to do this for a long time now. Kindly help. Thank you

Like davorf mentioned in his comment. You need to update the sound config settings before running avs setup.sh.

first check the proper soundcards using aplay -l arecord -l note the hardware and card number

new avs installation wgets 3 sh files. in pi.sh change your sound cards in below section cat << EOF > "$SOUND_CONFIG" pcm.!default { type asym playback.pcm { type plug slave.pcm "hw:0,0" } capture.pcm { type plug slave.pcm "hw:1,0" } } EOF

then run the sudo bash setup.sh config.json [-s 1234] if you have already installed, you have to delete everything related to this avs, mainly avs-device-sdk and build folders works like a charm

need a lot of patience to rebuild avs.. if anybody can find a easier solution to just change the sound card and build only that part, would be of great help.

krbaburaj1979 commented 3 years ago

startsample is running as sudo user, so look into /root/.asoundrc. pcm.!default { type asym playback.pcm { type plug slave.pcm "hw:1,0" } capture.pcm { type plug slave.pcm "hw:1,0" } }

Instead of slave.pcm "hw:0,0" --> Which id default HDMI Give slave.pcm "hw:1,0"