vanderfox / alexa-skills-kit-java

SDK and example code for building voice-enabled skills for the Amazon Echo.
http://developer.amazon.com/ask
Apache License 2.0
3 stars 2 forks source link

Java Alexa Skills Kit SDK & Samples

This is a fork of the main aws java sdk repository. Because they haven't been responsive to PRs

I've merged those into this repo and invited authors of the PRs here to collaborate. I will push these to bintray for now so you can resolve this sdk in your gradle/maven build.

Alexa Skills Kit Documentation

The documentation for the Alexa Skills Kit is available on the Amazon Apps and Services Developer Portal.

Include the released versions on bintray in your maven/gradle build

You will need to add the repository to your build and use the differnet artifact name:

Gradle:

repositories {
    maven {
        url  "http://dl.bintray.com/vanderfox/alexa-skills-kit-java" 
    }
}

Maven:

<?xml version="1.0" encoding="UTF-8" ?>
<settings xsi:schemaLocation='http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd'
          xmlns='http://maven.apache.org/SETTINGS/1.0.0' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'>

    <profiles>
        <profile>
            <repositories>
                <repository>
                    <snapshots>
                        <enabled>false</enabled>
                    </snapshots>
                    <id>bintray-vanderfox-alexa-skills-kit-java</id>
                    <name>bintray</name>
                    <url>http://dl.bintray.com/vanderfox/alexa-skills-kit-java</url>
                </repository>
            </repositories>
            <pluginRepositories>
                <pluginRepository>
                    <snapshots>
                        <enabled>false</enabled>
                    </snapshots>
                    <id>bintray-vanderfox-alexa-skills-kit-java</id>
                    <name>bintray-plugins</name>
                    <url>http://dl.bintray.com/vanderfox/alexa-skills-kit-java</url>
                </pluginRepository>
            </pluginRepositories>
            <id>bintray</id>
        </profile>
    </profiles>
    <activeProfiles>
        <activeProfile>bintray</activeProfile>
    </activeProfiles>
</settings>

Then include in your dependencies: Gradle:

compile 'com.amazon.alexa:alexa-skills-kit-java:1.1.5_SNAPSHOT'

Maven:

<dependency>
  <groupId>com.amazon.alexa</groupId>
  <artifactId>alexa-skills-kit-java</artifactId>
  <version>1.1.5_SNAPSHOT</version>
  <type>pom</type>
</dependency>

Changes

1.1.6_snapshot

public SpeechletResponse onIntent(final IntentRequest request, final Session session, Context context) throws SpeechletException {}

1.1.5_snapshot

Usage

Navigate to the README.md in each sub directory in the samples folder and follow the instructions for getting the sample up and running.

Resources

Here are a few direct links to our documentation: