Using Diatheke SDK

This section describes how to use the SDK for currently supported languages. For unsupported languages, please see the Diatheke API reference, or contact us to request support for your preferred language.

Contents

  • Including the SDK
  • Gives language-specific instructions about how to add the SDK to your project.

  • Error Handling
  • Describes how errors from the SDK are reported.

  • Connecting to the Server
  • Describes how to connect to a running Diatheke server instance.

  • Sessions
  • Defines what a session is, and how to interact with it.

    • Creating a Session
    • How to start and end a new dialog using a Diatheke model to create a session.

    • Event Stream
    • The event stream notifies the client of significant events that occur in Diatheke.

    • Push Text
    • Provides text-based user input to a Diatheke session.

    • Audio Input
    • Describes how to provide audio-based user input to a session.

    • Audio Output
    • Describes how to receive audio output from a session.

  • Streaming ASR
  • Creating and using an ASR stream unrelated to any running sessions.

  • Streaming TTS
  • Creating and using a TTS stream unrelated to any running sessions.