Coder Social home page Coder Social logo

balsimpson / alexa-radio-skill Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 3.0 2.28 MB

An Alexa Skill that lets you create and customize a personal playlist of audio streams that can be easily managed through a web page. Listen to your favourite radio streams or audiobook by saying, Alexa, ask juke box to play some blues.

Home Page: https://alexa-radio-skill.vercel.app

Vue 65.75% CSS 0.53% TypeScript 27.84% JavaScript 5.88%

alexa-radio-skill's People

Contributors

balsimpson avatar

Stargazers

 avatar  avatar

Watchers

 avatar

alexa-radio-skill's Issues

Alexa reply: "Playing music from provider XXX is not supported"

Hi. This project looks great!

My issue is probably/hopefully pilot error.. I'm new to Alexa and skills.

Everything is deployed and appears to be working properly:

  • Firebase database..
    • with pre-populated data:
        * collection = "alexa"
          - document = "responses"
            * fields:
              - (array of strings) launch       = ["Resuming"]
              - (array of strings) now_playing  = ["You are tuned in to"]
              - (array of strings) next_playing = ["Next up is", "next,", "up next,"]
              - (array of strings) stop_playing = ["Catch you later!", "Ciao!"]
      
    • with updated access rules:
        rules_version = '2';
        service cloud.firestore {
          match /databases/{database}/documents {
            match /{document=**} {
              allow read, write: if true;
            }
          }
        }
      
  • Vercel web app..
    • cloned from this commit
    • with read/write access to Firebase
  • Alexa skills..
    • code:
      • uses a modified copy of this zip file
      • changes:
        • file: lambda/index.js
          • line: 6
            const BASE_URL = "https://alexaradio.vercel.app";
          • change: use base URL for my clone of the Vercel web app
    • notes:
        Code:
          * click:  "Import Code"
            choose: "AlexaRadioSkill.zip"
          * click:  "Deploy"
      
        Build > Interfaces:
          * enable checkbox: AudioPlayer interface
          * click: "Save Interfaces"
      
        Build > Interaction Model > Intents:
          * enable:
              AMAZON.CancelIntent
              AMAZON.HelpIntent
              AMAZON.StopIntent
              AMAZON.NavigateHomeIntent
              AMAZON.FallbackIntent
              AMAZON.PauseIntent
              AMAZON.ResumeIntent
          * add custom Intent:
            - name = PlayMediaIntent
            - slots:
              * name = SEARCH_TERM
                type = AMAZON.RadioChannel
          * click: "Save Model"
      
        Build > Interaction Model > Intents > PlayMediaIntent:
          * sample utterances:
              "to play {SEARCH_TERM}"
              "for {SEARCH_TERM}"
              "play {SEARCH_TERM}"
              "play some {SEARCH_TERM}"
              "read me {SEARCH_TERM}"
          * click: "Save Model"
      
        Build > Invokations > Skill Invocation Name:
          * Skill Invocation Name = "warrens juke box"
          * click: "Save Model"
          * click: "Build Model"
      

notes:

  • the status of the skill is: In Dev
    • Code: Promote to live
      was never clicked
    • I only want this skill available to Alexa devices logged into my Amazon account

issue:

  • when I say:
    Alexa, ask Warrens Juke Box to play [name of channel]
  • the response is:
    playing music from provider Warrens Juke Box is not supported

What was my mistake?..
What installation step did I miss?


Thanks again for all this hard work!
I'm looking forward to being able to configure my own .m3u playlists..
without needing to depend on any 3rd-party service.

Besides music, this is going to work great for accessing free audiobooks from Librivox..
which appear to:

  • host all files on archive.org
  • follow a convention where each chapter is a separate .mp3 with an .m3u playlist

Firebase DB

Hello @balsimpson

I get this
image

I dunno if it's me i'm wrong or is it completly broken ...

here how Iv'e read the credetials

image

thks

500 Firebase: Error (auth/invalid-api-key).

where do i add the api Key of the firebase project ID inside the code which and the file could reference me the location is giving this error 500 Firebase: Error (auth/invalid-api-key).

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.