Speaker Phat with Alexa Sample App


I am using a Pi Zero Wireless running latest Jessie with the Speaker Phat for audio and a USB C-Media microphone dongle.

$ uname -a
Linux raspberrypi 4.9.24+ #993 Wed Apr 26 17:56:54 BST 2017 armv6l GNU/Linux

I am using this github project for Alexa sample app:

I have a working baseline where local playback works and the Speaker Phat LEDs light up normally.

The problem is that when I try and run the Alexa Java Client app, I get a fatal error right when I click on the microphone button. That’s when an audible chime is supposed to play on a regular Pi with speakers. With the Speaker Phat however, it crashes. The problem seems to be in some sort of audio related code (libasound.so). It also crashed right after printing out "Using device: speaker-phat "

I was wondering if anyone has tried using the speaker-phat with the amazon alexa project.

The log of the error as it appeared as well as subsequent log file and gdb commands can be found here: https://pastebin.com/St1vitXL