Skip to main content
The official Java SDK for KugelAudio provides a simple, type-safe interface for text-to-speech generation. Requires Java 17+.

Installation

Add the dependency to your pom.xml:
Or with Gradle:

Quick Start

Pre-connecting for Low Latency

By default, new KugelAudio(options) immediately starts a WebSocket connection in the background. This means the connection handshake is absorbed at startup rather than on the first request — see Latency.
Without pre-connecting, the first TTS request includes WebSocket connection setup. Subsequent requests reuse the connection. See Latency for typical numbers. The default autoConnect = true moves this overhead to client construction.

Explore the SDK

  • Configuration — client options, authentication modes, regions
  • Generate & Stream — one-shot generation, streaming, normalization, word timestamps
  • LLM Sessions — streaming sessions, barge-in, multi-context sessions
  • Voices — list, create, and manage voices
  • Dictionaries — per-project pronunciation and replacement lists
  • Types — data models, audio utilities, and a complete example