
Once you have made these change, and so you have all the libraries locally for development purposes, you can run this command in the terminal in Visual Studio Code: pip install -f requirements.txt Once finished your file should look like the snippet below. Open that file in Visual Studio Code and add the Alexa SDK items we need, along with a couple of other libraries we will need to complete our implementation. If you look in your Azure Functions project you will see a ‘requirements.txt’ file. We need to first add the SDK that Amazon publishes for developers wishing to build Alexa backends using Python. Add the Alexa Python SDK to our Azure Function At this point we are ready to add the code to support our Alexa Skill. If you run the Azure Function locally you will see the URL published in a format similar to: You need a HTTP trigger (which the Quickstart uses) and should set the authentication for the method to “Anonymous”. Once you have all the pre-requisites in place you can start by creating a new Python-based Azure Functions project in Visual Studio Code using the official Microsoft Quickstart as a guide. Visual Studio Code with these extensions:.If you’d like to build your own Alexa Skill similar to the one in this post, this is what you’ll need: Want to know how to get it all working as well? Read on! Pre-requisites If all you want is the code from this blog, you can find it on GitHub. Maybe you’re looking for a complete non-Lambda Alexa Skill sample in Python and struggling to find anything in the official docs or repositories. The benefit of this route is you can build your Bot logic and flow once and then publish to multiple channels. Note: I opted to go with a bare-bones implementation on Azure, but if you’re looking to build a more complex user experience it’s worth looking at the Azure Bot Service and SDK and then connecting the resulting Bot to Alexa. We’ll be using Python to build our Skill. Most code samples in the Alexa documentation simply use AWS Lambda serverless backends, but for my post I am going to replace Lambda with it’s equivalent in Azure – Azure Functions. For this post I am going to pick Amazon’s Alexa assistant and build a Skill that allows Alexa users to hear the latest Azure news. The assistants most people would be familiar are Amazon Alexa, Google Assistant and Apple’s Siri. This got me thinking about how I could take the foundation of my last post on generating a PowerPoint presentation from the latest Azure Updates RSS feed and use it to create a way for people to hear these updates via a voice assistant. A fairly common scenario, and one that most assistants ship with, is reading the latest news headlines.

Voice assistants have become all the rage, and they provide a great way to access and consume information.
