avs-device-sdk icon indicating copy to clipboard operation
avs-device-sdk copied to clipboard

Hot to use Alexa Cast

Open CyberSinh opened this issue 4 years ago • 8 comments

I installed AVS on my Raspberry Pi 3 to cast audio from my Amazon Music app, but the Pi doesn't appear as available device for audio casting in the app.

What can I do ?

What is the expected behavior?

The Pi should appear as available for audio casting in the Amazon Music app, like any other Alexa-enabled devices.

What behavior are you observing?

The Alexa-enabled Pi doesn't appear ready to cast from the Amazon Music app.

Tell us about your environment:

What version of the AVS Device SDK are you using?

  • Latest

Tell us what hardware you're using:

  • Raspberry Pi 3B

Tell us about your OS (Type & version):

  • Latest Raspbian

CyberSinh avatar Aug 30 '21 21:08 CyberSinh

Hi,

Can you explain which version of the SDK you are using? Also, please provide any DEBUG9 logs so that we can better assist you.

kjkh avatar Aug 31 '21 00:08 kjkh

I follow the tutorial available here: https://developer.amazon.com/en-US/docs/alexa/avs-device-sdk/raspberry-pi-script.html The SDK used by the script should be the latest.

The DEBUG9 log is attached: DEBUG9.txt

Thanks!

CyberSinh avatar Aug 31 '21 06:08 CyberSinh

Any idea?

CyberSinh avatar Sep 01 '21 18:09 CyberSinh

Hello @CyberSinh, Are you still facing this issue? Which version of the SDK are you using?

blazusiak-amazon avatar Jul 11 '22 17:07 blazusiak-amazon

Hello @blazusiak-amazon, Due to the lack of help on this post, I decided against streaming my music to Alexa Cast installed on my Raspberry Pi. But if this scenario is officially supported, I'd love a tutorial. The SDK used was the latest available on the 2021/08/30.

CyberSinh avatar Jul 19 '22 19:07 CyberSinh

Hi @CyberSinh,

This feature should now be available. If you have an AVS SDK instance on the Raspberry Pi that can support music playback, registering it to the same account as your Amazon Music account will allow you to connect to the Raspberry Pi and play from that device. To do this, please enter the Amazon Music app and click the gear icon for settings, and click "Connect to a Device".

However, note that your Raspberry Pi AVS SDK product must support music playback.

kjkh avatar Sep 05 '22 23:09 kjkh

Thanks @kjkh. I did some more tests with the latest version of the SDK, but using the official script, the SampleApplication compilation fails. It seems that the problem is related to the lack of audio capture device, which is desired because it is not necessary for the intended use (audio streaming from the Amazon Music app). The Alexa device has been configured as "mic-less" in capabilities. If my understanding of the compilation logs is correct, how do I compile SampleApplication on a device without a microphone?

CyberSinh avatar Sep 08 '22 21:09 CyberSinh

Compiling the Alexa SDK on a Raspberry is a real pain. Why not provide directly precompiled binary?

CyberSinh avatar Sep 19 '22 07:09 CyberSinh

It appears that compilation has not failed, but that instead this is a runtime failure.

SampleApplication specifically is intended to be used with a microphone implementation. If you do not wish to have one, and are familiar with C++, you can modify SampleApplication to bypass this behavior.

The quick and dirty way would be to no-op / return false in all of the methods in PortAudioMicrophoneWrapper.cpp: https://github.com/alexa/avs-device-sdk/blob/v1.26.0/SampleApp/src/PortAudioMicrophoneWrapper.cpp.

A more involved alternative would be to implement a NoOpMicrophoneWrapper implementation.

kjkh avatar Oct 15 '22 00:10 kjkh

Hello @CyberSinh,

Due to the inactivity of this ticket, this ticket will be closed. Please feel free to re-open the ticket if you have more questions or feel that your question has not been answered fully.

blazusiak-amazon avatar Nov 14 '22 01:11 blazusiak-amazon

I finally gave up on the idea of using Alexa Cast to stream Amazon Music with a Raspberry Pi. It's a real hell: no pre-compiled binary, compilation that crashes the Pi (temperature too high, lack of memory to complete the compilation,...) and lasts for hours, no responsive technical support, no native mic-less support... I've wasted enough time for an obviously unsupported scenario.

CyberSinh avatar Nov 14 '22 07:11 CyberSinh