Skip to content

louth/kwiet

Repository files navigation

kwiet

Kotlin implementation for voice technologies.

Coverage Status Codacy Badge

Getting Started

repositories {
  jcenter()
}

dependencies {
  compile 'au.com.louth:kwiet-actions-sdk:0.4'
}

Usage

Google ActionsSDK on AWS Lambda


fun mainHandler(request: AppRequest, context: Context) = simpleResponse {
    textToSpeech = "Hello world"
}

fun echoHandler(request: AppRequest) = simpleResponse {
    textToSpeech = request.getArg("text")
}

fun quitHandler() = finalResponse {
    textToSpeech = "Goodbye"
}

val handlers = mapOf(
        StandardIntent.MAIN to ::mainHandler,
        StandardIntent.TEXT to ::echoHandler,
        StandardIntent.CANCEL to ::quitHandler)

fun handleActionRequest(request: AppRequest) = handleLambdaRequest(handlers, request)

Code of Conduct

Please note that this project is released with a Contributor Code of Conduct. By contributing to this project (commenting or opening PR/Issues etc) you are agreeing to follow this conduct, so please take the time to read it.

Acknowledgment

This project began as a fork of https://github.com/Ticketmaster/actions-on-google-kotlin

License

kwiet is licensed under the Apache 2.0 License. See LICENSE for details.

Copyright (c) 2018, Andrew Louth and Contributors

About

Kotlin implementation for voice technologies.

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages