This Alexa sample skill is a template for a WebRTC video and audio calling with Alexa Smart Properties.
This networking skill is only the middelware solution for the Alexa Smart Properties WebRTC base calling solution.
The voice interface is configured through the Alexa communication services and not the skills interaction model.
The purpose of this networking skill is to connect your own WebRTC infrastructure with Alexa Smart Properties in a peer to peer video and audio call.
This Alexa skill requriements are as followed:
-
Your skill must be allowlisted thought Alexa Smart Properties to be able to enable WebRTC calling. To complete this step, please request the WebRTC Add-on in your Alexa Smart Property console.
-
Please use this link and follow steps to active this for your ASP account. https://developer.amazon.com/en-US/docs/alexa/alexa-smart-properties/get-started-calling-api-for-asp.html
-
Your skill must have account linking enabled for you to be able to succesfully place an inbound or outbound webrtc.
There are a number of different ways for you to setup your skill, depending on your experience and what tools you have available.
- If this is your first skill, choose the Alexa-Hosted backend instructions to get started quickly.
- If you want to manage the backend resources in your own AWS account, you can follow the AWS-Hosted instructions.
- Developers with the ASK Command Line Interface configured may follow the ASK CLI instructions.
Setup your WebRTC skill
> cd skill
> npm i
> npm i axios
In the index.js file of the skill located in Lambda/custom, add your Alexa CLIENT_ID
and CLIENT_SECRET
located Alexa Skill Messaging in the permission tab of your skill in the Alexa Developer Console
{
const CLIENT_ID = 'ADD Alexa Client Id HERE';
const CLIENT_SECRET = 'ADD Alexa Client Secret HERE';
}
After deploying your severside code into the Elestic Beanstalk please the URL in the variable below in the index. js file. For more information about this, please review the server folder's Demo WebRTC Server Instructions.
{
const baseUrl = "ADD DEVELOPER WebRTC Server URL HERE";
}
- Onboard and Implement Skill-Based WebRTC Calling for Alexa Smart Properties - The Offical Alexa Smart Properties WebRTC Documentation
- Self Service Onboarding API Reference for Alexa Smart Properties - Self Service Onboarding API
- Service Provider Network Mapping API Reference for Alexa Smart Properties - Service Provider Network Mapping API
- Account Association API Reference for Alexa Smart Properties - Account Association API
- Alexa.Comms.CallSignaling Interface - Alexa.Comms.CallSignaling Interface
- About Alexa Smart Properties - About Alexa Smart Properties
- Amazon Developer Forums - Join the conversation!
- Official Alexa Github
- Official Alexa Samples Github