This project demonstrates how build a simple an Alexa skill service in Java. This application receives a name from the skill interface, and returns the name spelled out using Speech Synthesis Markup Language (SSML).
This app was also built on OSX using the Eclipse IDE. It should run fairly easily on Windows and Linux. This project is essentially a Spark application using Maven.
Run the application, which should start the server
Setup ngrok to expose the endpoint
ngrok http 4567
Setup your skill interface
- Go to Amazon Developer's Portal and create a new Alexa skill
- Setup the interaction model using the provided
Intent Schema
andSample Utterance
which can be found in thesrc/main/java/speechAssets
folder. - Setup the endpoint to point to your ngrok tunnel, example:
https://81429dd5.ngrok.io/alexa