Community-maintained integration. This service is built and maintained by lokutor-ai. Pipecat does not test or officially support it. Please report issues and request changes on the source repository. Learn more about community integrations.
Overview
LokutorSTTService streams audio to Lokutor’s real-time
recogniser (wss://api.lokutor.com/ws/stt) and pushes InterimTranscriptionFrame
and TranscriptionFrame results. One model covers nine languages (en, es,
ca, gl, eu, pt, fr, it, de), and the language can be set or left
for the service to detect.
Source Repository
Source code, examples, and issues for the Lokutor integration
PyPI Package
The
pipecat-lokutor package on PyPILokutor App
Get an API key
Documentation
Lokutor API and service documentation
Installation
This is a community-maintained package distributed separately frompipecat-ai:
Prerequisites
- Lokutor Account: Sign up and get an API key at app.lokutor.com
- Audio input at 16 kHz mono (Pipecat’s default). The service refuses to
start on any other input rate; set
audio_in_sample_rate=16000inPipelineParams.
Required Environment Variables
LOKUTOR_API_KEY: Your Lokutor API key
Configuration
str
required
Lokutor API key (or a short-lived
wst_ ticket) used to authenticate the
WebSocket connection.str
default:"wss://api.lokutor.com/ws/stt"
WebSocket URL of the STT endpoint.
int
default:"None"
Must be
16000 or None (use the pipeline’s rate, which must be 16 kHz).bool
default:"True"
Send
end as soon as Pipecat’s VAD reports that the user stopped speaking, so
the final transcript arrives promptly; the socket is then reopened for the
next utterance. Set to False to rely on the server’s own end-of-utterance
detection (about 0.7 s of silence).float
default:"None"
P99 time from end of speech to final transcript, in seconds. Measure it for
your setup with the Pipecat STT
benchmark.