Smart speakers have been one of the most gifted items over the holidays and, therefore, it is no surprise that almost every home has at least one of these devices. To make the most of them, devices like the Echo Show and the Echo Dot make apps available for users called Alexa Skills.
These voice enabled apps allow a user to check the news, play games, and even listen to recipes from celebrity chefs. Making these apps is as easy as ever when you follow our simple guide below. We’ve even created custom code you can copy and paste to make it easier to build custom voice experiences using the voices in Resemble AI.
With Resemble AI, you can clone your own voice or use our professional voice talent’s synthetic voices to supercharge natural sounding conversations on Alexa devices.
This guide will allow you to get setup with your very own Alexa Skill with custom voices and an optional AI Text generation and TTS integration powered by OpenAI’s GPT-3 and Resemble AI.
The Basics
To get started, first create an Amazon developer account here: https://developer.amazon.com/dashboard
You can also choose your hosting region in the top right if there’s a particular one you want. If not, the default host location “US East N. Virginia” will work just fine.
Clicking “Continue with template” will then create the skill and bring you to the Alexa Developer Console.
To add the custom code to your Alexa Skill, simply use the code here:
https://github.com/resemble-ai/resemble-alexa/blob/master/lambda_function.py
Copy the code on this GitHub Project, and then head back to the Alexa Developer Console. In the console go to the “Code” tab in the top menu bar. In this window replace all the code present with the copied code from the GitHub Project linked above.
- RESEMBLE_API_KEY (API Token)
- VOICE_UUID (Voice ID)
- PROJECT_UUID (Project ID)
- INTRO_AUDIO = “” (Optional Prompt Audio when Skill is opened)
- ASK_AUDIO = “” (Optional Audio to invoke a response from User)
- OPEN_AI (Optional OpenAI Token to use GPT-3)
To get the first three ID’s follow the next step.
Adding Custom Voices with Resemble AI
To add custom voices, create an account on Resemble AI. This will give you access to the API where you can easily connect the voices on Resemble to your newly created Alexa Skill.
Create your account here: https://app.resemble.ai/users/sign_up
If you already have an account, head over to Resemble’s API: https://docs.app.resemble.ai/.
Once you create the account, click on the top right dropdown menu and select “API” to get the API Token. You can also find the token once signed in here: https://docs.app.resemble.ai/.
Similarly, you can access the Project and Voice IDs in our documentation site: https://docs.app.resemble.ai/.
Click on “Execute” to get the projects and voices on your account. If you need other professional synthetic voices, browse the Resemble Voice Marketplace and add the one you like to your account. The ID associated with that voice will then be available to you.
With the copied Custom API Token, Project, and Voice ID’s, replace those values with the ones in the Python Code within the Alexa Development Console.
If you’re using GPT-3, make sure to add your OpenAI account details to the “requirements.txt” from the GitHub Project
Finally, test your code, and distribute it to the Alexa Skill Store!