alexa / alexa-skills-kit-sdk-for-python

The Alexa Skills Kit SDK for Python helps you get a skill up and running quickly, letting you focus on skill logic instead of boilerplate code.
https://developer.amazon.com/en-US/docs/alexa/alexa-skills-kit-sdk-for-python/overview.html
Apache License 2.0
809 stars 204 forks source link

Add more example about audio player. #7

Closed vankhoa011 closed 5 years ago

vankhoa011 commented 6 years ago

I'm submitting a...


[ ] Regression (a behavior that used to work and stopped working in a new release)
[ ] Bug report  
[ ] Performance issue
[x] Feature request
[ ] Documentation issue or request
[ ] Other... Please describe:

Do you have any plan for adding skill-sample-python-audio-player ? . I saw we've already had this skill-sample-nodejs-audio-player with NodeJS .

robd003 commented 6 years ago

I'd love to see a multi-stream example where the user could skip forward / backwards by a user specified number of seconds.

sungolivia commented 6 years ago

Thank you for your feature request, please pitch in ideas to User Voice. If it already exists, make sure to give your vote!

robd003 commented 6 years ago

@sungolivia Here's a link to the request: https://alexa.uservoice.com/forums/906892-alexa-skills-developer-voice-and-vote/suggestions/34888246-provide-audioplayer-example-for-python-ask-sdk

nikhilym commented 6 years ago

@robd003 , @vankhoa011 , A simple usage of the SDK for adding audioplayer directive can be found here

Stay tuned for a more complex example skill!!

robd003 commented 6 years ago

Thanks @nikhilym it's great to see the basics of how to use the audioplayer interface!

Kitemaker commented 6 years ago

Hello I am looking for a working example for Dialog Model where DialogState is used to determine the slot values and assignment. I tried but facing some issues

nikhilym commented 6 years ago

Hey @Kitemaker , please create a new issue with your question, since it is unrelated to this feature request.

nikhilym commented 6 years ago

Hey @Kitemaker , in case you are still looking for an example, the Python ASK SDK went to GA today and we did provide more samples there.

As for @vankhoa011 and @robd003 request for audioplayer sample, we are working on it. Stay tuned!!

robd003 commented 6 years ago

Thanks @nikhilym really looking forward to the audioplayer samples!

vankhoa011 commented 6 years ago

Thanks @nikhilym , I'm looking forward to multistream sample.

nikhilym commented 5 years ago

Hey @vankhoa011 , @robd003

Sorry for the long delay. Here is the audioplayer sample that contains both single stream and multi stream sample skills.

I'd love to see a multi-stream example where the user could skip forward / backwards by a user specified number of seconds.

As for @robd003 's request of forward/backward skip, the Audioplayer interface doesn't provide comprehensive support for doing these actions. The same can be achieved by using system time and figuring out when the request came in, and adding the offsets. But that resulted in a very poor code with some missed edge cases. So, we left that out of this sample code. Please log a UserVoice feature request in case you want the service team to provide the native support in the audioplayer interface.

Please check the code, play around a bit and let us know what you think!!