Skip to main content
Pipecat is an open-source Python framework for building real-time voice and multimodal conversational AI agents. Lokutor TTS is available as a community integration.

Installation

Speech to text

pipecat-lokutor 0.3.0 adds LokutorSTTService, which streams audio to the /ws/stt WebSocket and returns interim and final transcripts in the nine supported languages. The pipeline must run at 16 kHz.
Lokutor ends a stream after an end message, so the service sends end when Pipecat’s VAD reports that the user stopped speaking and reopens the socket for the next utterance. Pass finalize_on_vad_stop=False to rely on the server’s own silence timer instead. Custom vocabulary is passed as keyterms.

Usage

Full Example

A complete example using Groq STT + Groq LLM + Lokutor TTS is available in the repository.

Features

  • WebSocket-based streaming TTS
  • Pay-per-use pricing from a prepaid balance (rate card)
  • Automatic reconnection with exponential backoff
  • Metrics and usage tracking
  • Full Pipecat frame lifecycle management

Resources