GithubHelp home page GithubHelp logo

dbsdavid1501 / alexa-audio-tutorial Goto Github PK

View Code? Open in Web Editor NEW

This project forked from matthiasxc/alexa-audio-tutorial

0.0 0.0 0.0 2.9 MB

Alexa Audio Skill in C# (.Net Core)

Home Page: http://matthiasshapiro.com/2017/04/01/alexa-audio-skill-in-c-net-core/

C# 100.00%

alexa-audio-tutorial's Introduction

alexa-audio-tutorial

This project is a bare bones Alexa audio skill written in C# and intended for deployment on Amazon's Lambda service. I walk through setup, core code concepts, and deployment in this tutorial.

Herein, you will find the following components:

Alexa Audio Function

This function handles

  • persistent user state using a DynamoDb Helper
  • Launch requests
  • Intent requests
  • Audio-specific requests

Audio Assets

In the speechAssets folder, I've included five 30-second audio files for testing. Each file starts with "This is the [first, second, third, etc] of five audio files" and then plays a sample of Bach (so it's not too annoying to play over and over).

I've found this helpful because you don't have to wait 10+ minutes to test events like PlaybackFinished or PlaybackNearlyFinished and having the audio files audibly declare their location in a sequence lets us test shuffle and next / previous functionality without having to look at the logs.

Sample Json Requests / Responses

Also in the speechAssets folder, there are several sample request / response json objects that can be used for unit testing or other non-deployment testing for Alexa skills.

DynamoDB helper

This is a very simplistic helper and not particularly extensible, but it is easy to read. It has methods for verifying / creating a table for our user state as well as saving & retrieving that state.

alexa-audio-tutorial's People

Contributors

matthiasxc 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.