Code Monkey home page Code Monkey logo

alexa_youtube's Introduction

Alexa_YouTube Skill

Play Youtube Music via Alexa Echo. Alexa_YouTube skill makes it easy to play music and playlist from YouTube.

How to install

IMPORTANT: Download the latest release version (ZIP file) from HERE and upload it in AWS.

Alt text

Click on the image above to watch the video.

Features

User ...

  • ... doesn't need a YouTube account to groove this skill
  • ... doesn't have to wait until video is completely downloaded
  • ... can easily create and modify playlists
    • Playlists are identified by numbers
      • Alexa ask youtube for playlist {NUMBER}
    • Playlists file contains only the ID of the songs and thus remains quite small

Dependencies

Youtube API: This skills need Youtube PI service to access on Videos on Youtube for this purpose, the web app https://youtube-alexa.herokuapp.com/ was created. Of course you can also use other services or create new one.

This WebApp runs on a private server, the corresponding source code can be found here

Set your language

Currently this skill supports the 4 languages en-US, de-DE, fr-FR, it-IT

Set the language you want to use in var lang = "en-US"; into index.js

Expand with your language

The new release make it easy to expand any language you want without changing the source code in index.js. Following are the steps you should take:

  1. Copy one of the existing interaction models file and replace the intent with your language (you need to compile your model)
  2. insert your language block into responses.js
  3. set your language in index.js var lang = "en-US";

Commands examples

  • To play song with title {title}
    • Alexa ask youtube for {title}
  • To insert the current Song in the PlayList number {number}
    • Alexa ask youtube for add to playlist {number}
  • To Remove song from the current PlayList
    • Alexa ask youtube for remove from playlist
  • To remove PlaList number {number}
    • Alexa ask youtube for remove playlist {number}
  • To play the next song of the current PlayList:
    • Alexa next
  • To get all playlists back
    • Alexa ask youtube for show all playlists

Development Links

Alexa Developer Console

AWS Lambda

Notes

Please note that the aws /tmp/ folder is a non-persistent scratch area. This means that your Playlists are only temporarily stored in it. To solve that, please use an other storage service or your own server storage. This repository is based off of this original skill

alexa_youtube's People

Contributors

reger-men avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

alexa_youtube's Issues

songs suddenly stop playing

I was so happy when I was able to make it work but now I've experienced this problem sporadically where song suddenly stops playing. I'm not sure if this relates to having my own server for the YouTube Api or is it something else. I need help. Thanks in advance

timeout of 61000ms exceeded

I tried uploading the zip file but I'm always getting the error 'timeout of 61000ms exceeded'. I even tried following steps from other forums to upload the zip file on S3 and point that URL to Lambda, but it still not working. I'm new to this but I know how to follow step by step instructions. I badly need help! Thanks in advance!

no audio on sonos speaker

Dear all
i modified the interaction model and index.js and response.js to manage also italian language.
The server answer but after "i'm playing" doesn't happen anything;No audio is present.
The issue occurs only on sonos beam and sonos one speaker. Everything work on my android phone.
What can i do?
Thank very much in advance.

Alexa Youtube issue

Hi,
I have followed your tutorial but have two problems , hope you can help:

  1. When uploading zip file (size is 2.5MB) there is an error with opening file , says coul d not find file index.js
    Not sure what I`m doing wrong here ?

aws index jc error

  1. Obviously because of the issue with index.js when I go to test my Alexa skill and type in "Ask youtube for hello" , there is no contents on JSON Output side , and the following error is announced : " There was a problem with the requested skill response"

there was a problem

Could you please help - thanks in advance.

cannot create a playlist

Hi,
First of all thank you for the skill - it's working great. However when I try to add a certain song to a playlist I get a response in German "Ich spiele jetzt "Hello"..." (why is it in German, not English?)
It seems like the playlist functionality is not working for me at all ;(
Pls help.

Alexa-Simulator gibt keine Antwort...

Ich habe das Youtube-Video und die Github-Anleitung versucht umzusetzen. Bis zum Testen mit dem Alexa-Simulator gab es keine Fehlermeldungen. Beim Test gib Alexa keine Antwort.. Anbei befinden sich zwei Bilder. Wo ran könnte es liegen?
fehleryoutube
aws_eingabe_youtube

Sorry, the application didn't know what to do with that intent

Hallo,

ich habe gestern versucht, den Skill nach Anleitung zu implementieren. Allerdings erhalte ich beim Testen immer "Sorry, the application ...".

Ich habe das deutsche Interaction Model genommen und die Sprache in der index.js auf de-DE gestellt. Das einzige, was mir nun auf die Schnelle aufgefallen ist, ist, dass es in der index.js nur ein "Looking up a video in English" gibt, wo es in der vorherigen Version das gleiche wohl auch noch für deutsch gab. Demnach scheint hier auch nur auf das "GetVideoIntent" referenziert zu werden. Im deutschen Model heisst dies jedoch GetVideoGermanIntent.
Der Slot heisst in der index.js VideoQuery, in der Alexa Konsole aber VideoQuerys. Aber das war wohl schon immer so. Vermutlich mache ich nur eine Kleinigkeit falsch. Aber das ist mir halt auf die Schnelle aufgefallen.

Habt Ihr eine Idee, woran es liegen könnte?

Danke und schöne Grüße

Marco

doesnt work anymore :(

get the error:
"Error retrieving device rendering
The object provided is not a valid template"
in the Test section of the alexa developer console ...

test via alexa also doesn't work, the blue ring disapears some seconds after the order ...

works for a while

A few hours ago I installed the skill, all works fine, now i try to use it and i have no answer, only the annoing sound "i don't understand"
I red that this skill version doesn't works anymore due to Lambda canges.
Any suggestion?

Thx

Multi speaker

Hi,
The skill is support/ will be support on alexa multi room speakers?

Thanks,

Error while song request

Hey,
I received this error in the lambda:
2018-12-02T22:36:52.744Z b1e905a0-f682-11e8-b5c8-f71fdb07a242 SyntaxError: Unexpected token < in JSON at position 0
at Object.parse (native)
at Request._callback (/var/task/index.js:225:32)
at Request.self.callback (/var/task/node_modules/request/request.js:186:22)
at emitTwo (events.js:106:13)
at Request.emit (events.js:191:7)
at Request. (/var/task/node_modules/request/request.js:1163:10)
at emitOne (events.js:96:13)
at Request.emit (events.js:188:7)
at IncomingMessage. (/var/task/node_modules/request/request.js:1085:12)
at IncomingMessage.g (events.js:292:16)
at emitNone (events.js:91:20)
at IncomingMessage.emit (events.js:185:7)
at endReadableNT (_stream_readable.js:974:12)
at _combinedTickCallback (internal/process/next_tick.js:80:11)
at process._tickDomainCallback (internal/process/next_tick.js:128:9)

and the song not playing.
this is occurs only in specific songs.
I tried to reinstall - without successful
Thanks!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.