11. The website will look like this before you click Finish.Make sure the URLs are displayed in a gray background after you have entered them in the corresponding boxes.
12. After you click Finish , this screen will appear.At this point, your project has been created and ready to go to the installation.
2. Enter the following information:
cd Desktop
git clone https://github.com/alexa/alexa-avs-sample-app.git
Before running the installation commands, update them with the credentials provided by Amazon: ProductID, ClientID, ClientSecret.
1. In Terminal, type the following:
cd ~ / Desktop / alexa-avs-sample-app
nano automated_install.sh
2. When the command runs, a screen like this will appear. You use the keyboard arrow navigation keys to navigate and replace the fields for ProductID, ClientID and ClientSecret with the values you have received.
The following change command will look like this:
ProductID = "Your Device Name"
ClientID = "amzn.xxxxx.xxxxxxxxx"
ClientSecret = "4e8cb14xxxxxxxxxxxxxxxxxxxxxxxxxxxxx6b4f9"
Click Ctrl + X to exit the script.Click Y and then press Enter to save your changes.
To run the script, open Terminal and enter the following commands:
cd ~ / Desktop / alexa-avs-sample-app
. automated_install.sh
While this script is running, you will be asked to answer some simple questions to make sure that you have completed all the necessary settings on Amazon before installing the program.
The installation process will take about thirty minutes.
After a successful installation, your Terminal window will look like the image below.
You must complete three steps to run the Alexa application.Each step is run in a separate Terminal window, and you perform the steps in the correct order.
This window will run a web service to authorize your application with the AVS (Alexa Voice Service).
Open Terminal and enter the following commands:
cd ~ / Desktop / alexa-avs-sample-app / samples
cd companionService && npm start
Note : npm is a management package for JavaScript programming language.If it is not available when you run the command, you can get it here.
When the command process finishes, a window that looks like this will appear.
Do not rush to close, this window needs to remain open while you proceed to the next steps.
This window helps communicate with AVS.
Type the following command into another Terminal window:
cd ~ / Desktop / alexa-avs-sample-app / samples
javaclient cd && mvn exec: exec
Note: mvn stands for Apache Maven.If you don't have one, click here.
When you run the client, a dialog box will appear, saying: " Please register your device by . "
Select Yes .
For some browsers, you will receive a warning that this connection is not secure.Turn off this notification by clicking the Advance button. Then, on the next screen, click Proceed to localhost (unsafe).
Now, log into Amazon with the developer login you already have.
The next screen will require permission to use the security profile you created earlier for the device you are registering.Click OK.
You will then be redirected to a URL starting with 'https: // localhost: 3000 / authresponse' that looks like the image below.
Go back to the open dialog and click the OK button.Now the client can accept requests from your Alexa device.
Do not close the terminal window and the Voice Service Dialog dialog box .
Alexa voice wake up application will be installed in this window.If you do not want to use voice to command Alexa, you can skip this step.
Open a new Terminal window and use one of the following commands to bring up the Alexa wake-up speech system using Sensory or KITT.AI.
To use the wake up speech system, enter the command:
cd ~ / Desktop / alexa-avs-sample-app / samples
cd wakeWordAgent / src && ./wakeWordAgent -e sensory
Awaken virtual assistant by saying 'Alexa'.After a beep appears you can start the command.For example, try by saying, 'Alexa.'Wait for a beep and ask, 'what time is it?'(What's the time?).
If Alexa answers correctly then your virtual assistant is ready for work.
See more: