Coder Social home page Coder Social logo

alexa-soundcloud's Introduction

alexa-soundcloud

stream and control your soundcloud music from alexa

This is not an offical app. According to this blog post it looks like there is no support from soundcloud.

Samples

Alexa, tell soundcloud play my favorite tracks

Alexa, play next

Alexa, play previous

Alexa, ask soundcloud for the current track

Alexa, soundcloud shuffle (TODO)

But with a little bit of configuration, you can easily build your own soundcloud alexa skill.

(The following guide aussumes that you have an amazon developer account and that you are a bit familiar with amazon web services)

1. Create the Alexa Skill

  • login to your alexa developer account
  • create a new skill
  • Skill Information provide a name and a invocation name (e.g. soundcloud) and click the radio button for audio player
  • Interaction Model (launch the new editor) open the code tab and paste interactionModel_your_language.json into the text field. click save and build the model
  • Configuration (skip this for now, in the next step, we define the aws lambda function)

2. Deploy the code

  • create a new lambda function
  • Name: alexa-soundcloud, Runtime: Python2.7, Execution Role: lambda_basic_execution
  • hit the create function button
  • add the trigger amazon skill kit
  • upload the zip file
  • enviroment variables AS_USER_ID 125445454 (your id) ( how to find my user id )

Setup for Development

git clone https://github.com/paszin/alexa-soundcloud.git

git submodule init

git submodule update

make lambdazip

Developer Comments

  • check out flask ask. It makes developing skill very easy. Thanks :)
  • also checkout the tutorials, ngrok + flask-ask is a great combination to speed up your development.
  • Creating new apps is currently disabled at soundcloud. I left my client_id in the code, so you can use that...
  • I saw some examples where DynamoDB was used to save the playlist. This is not necessary, you can add it to your session attributes.
  • For deploying my lambda function I prefer uploading the zip file. Instead of virtualenv I use the target option for pip install to install everything into the build directory.

alexa-soundcloud's People

Watchers

 avatar

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.