gravesjohnr / AlexaNotificationCurl

Some curl scripts to allow interfacing with Alexa using text as input.
119 stars 34 forks source link

Cannot play music #7

Open Nathan1123 opened 7 years ago

Nathan1123 commented 7 years ago

Just finished setting it up. Ran the command: ./alexa.sh "play music" The response (from my computer) announced the music it was going to play, but no music actually played. I even tried logging into Amazon's web player. No dice. I then tried asking my real Alexa to play music, and was surprised to hear "Amazon music is already being streamed from another device". So it did make the request to stream music, but didn't actually play it. I also tried switching the default music app from Amazon to Spotify, and got the same results. Funny enough, after sending the request to play on Spotify using the "alexa.sh" script, I was still able to play Amazon music on the real Alexa. Apparently there is no confliction if its different services.

Bottom line is, did you try using this method to play music at all? If so, what am I doing wrong? If not, I would recommend that is a huge disadvantage, being it is a large percentage of what Alexa's basic functionality is. Nathan

gravesjohnr commented 7 years ago

Nathan,

I haven't tried to stream using this method. You can look at the response to see if it sends some type of streaming url or mp3u type file. If so, you could play it using something like VLC.

This script expects a complete audio file to be returned and then played. Not streamed.

-John


From: Nathan1123 Sent: Thursday, May 18, 2017 9:37AM To: Gravesjohnr/alexanotificationcurl Cc: Subscribed Subject: [gravesjohnr/AlexaNotificationCurl] Cannot play music (#7)

Just finished setting it up. Ran the command: |./alexa.sh "play music"| The response (from my computer) announced the music it was going to play, but no music actually played. I even tried logging into Amazon's web player. No dice. I then tried asking my real Alexa to play music, and was surprised to hear "Amazon music is already being streamed from another device". So it did make the request to stream music, but didn't actually play it. I also tried switching the default music app from Amazon to Spotify, and got the same results. Funny enough, after sending the request to play on Spotify using the "alexa.sh" script, I was still able to play Amazon music on the real Alexa. Apparently there is no confliction if its different services.

Bottom line is, did you try using this method to play music at all? If so, what am I doing wrong? If not, I would recommend that is a huge disadvantage, being it is a large percentage of what Alexa's basic functionality is. Nathan

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_gravesjohnr_AlexaNotificationCurl_issues_7&d=DwMCaQ&c=RoP1YumCXCgaWHvlZYR8PQcxBKCX5YTpkKY057SbK10&r=MFgxPaDwyaQor0xHsV4pdBgb2c8w0X46eQubSO-HaQ0&m=cS8xJealnEi6Eu6gl9BsHiFdTDddEP5EAmXGs2Su6-Q&s=0DqCrsbtvnDccPX1dE4rkGgLSk_hiWYSipFRaf5SGx8&e=, or mute the thread https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_notifications_unsubscribe-2Dauth_ANCZvX3xkLJcQ9bRJuQwaA-5FlyrRSxrfZks5r64SzgaJpZM4NekKZ&d=DwMCaQ&c=RoP1YumCXCgaWHvlZYR8PQcxBKCX5YTpkKY057SbK10&r=MFgxPaDwyaQor0xHsV4pdBgb2c8w0X46eQubSO-HaQ0&m=cS8xJealnEi6Eu6gl9BsHiFdTDddEP5EAmXGs2Su6-Q&s=sknT24veO79ec5RkAIFtFyFfxKNAa8O9jV6vpfq4IyM&e=.