GithubHelp home page GithubHelp logo

tamhinsf / azure4alexa Goto Github PK

View Code? Open in Web Editor NEW
48.0 10.0 21.0 333 KB

Create and Host Alexa Custom Skills using .NET and Azure

License: Other

C# 91.03% ASP 0.23% HTML 8.74%
alexa-custom-skill alexa azure alexa-skills-kit alexa-skill c-sharp dotnet visual-studio

azure4alexa's People

Contributors

tamhinsf 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  avatar  avatar  avatar  avatar

azure4alexa's Issues

ENQUEUE is not working for me

Hi @tamhinsf,
Thank you for adding this project. It is a great help for me to create my own audio skill.
I was able to use your code to get my skill started. I can play a song and I can go to the next song when a user says: Alexa, Next.

I am having issues with ENQUEUE. Once the song ends, the other one does not start. I have made sure that on OnAudioPlayerAsync, I call the ENQUEUE action. I am passing the following (sample) response back to Alexa

{
"Card": null,
"OutputSpeech": null,
"Reprompt": null,
"ShouldEndSession": true,
"Directives": [{
"type": "AudioPlayer.Play",
"playBehavior": "ENQUEUE",
"audioItem": {
"stream": {
"token": "33|fdd9052a-717f-414f-a438-1072a64d0f49|831",
"expectedPreviousToken": "33|fdd9052a-717f-414f-a438-1072a64d0f49|830",
"url": "https://www.ppp.com/mysong.mp3",
"offsetInMilliseconds": 0
}
}
}]
}

Can you please guide me on what could be going wrong?

Fantastic contribution... but not async?

Hi Tam,

Thank you so much for this. I've been trying to wade through the Amazon documentation trying to unpick it from AWS and Lambda but after some googling found your repo. Your excellent step by step instructions had me talking to my own custom skill in Azure within half an hour!

I did find something strange though. You opted to use SpeechletAsync but have chosen not to implement the overrides asynchronously. The signature for OnIntentAsync could look like this:

public override async Task<SpeechletResponse> OnIntentAsync(IntentRequest intentRequest, Session session)

and Tfl.Status.GetResults could also be changed to be async, so that the call to the TFL service could be done like var httpResponseMessage = await httpClient.GetAsync(tflStatusUrl); and the result read like httpResultString = await httpResponseMessage.Content.ReadAsStringAsync();.

If it would help I could submit a PR with these changes in it (it will be my first proper PR in GitHub - so you may need to work though the process together!)

I haven't even looked at the outlook and Auth 2.0 stuff yet, but that could be very useful too - thanks again!

HTH, Jason

Question about ApplicationId

I got a small question about deployment process. In the readme you mention that after you create your skill in dev portal you need to copy applicationid into the code and redeploy the api app. But I've just taken the code as it is, deployed it to my Azure and linked to my skill and it worked. I didn't need to populate ApplicationId in the code.
Has something changed and it's no longer required? Or am I doing something wrong?

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.