LiveKit Plugins Lokutor
Lokutor speech-to-text and text-to-speech for LiveKit Agents.
Lokutor builds its own small speech models: Conv 2.0 for recognition and Versa 2.0 for synthesis, each one model for nine languages (English, Spanish, Catalan, Galician, Basque, Portuguese, French, Italian and German). See lokutor.com and the API docs.
LiveKit docs: speech-to-text and text-to-speech (live with the next release).
Installation
pip install livekit-plugins-lokutor
Set LOKUTOR_API_KEY, or pass api_key= to STT and TTS.
Usage
In an agent
from livekit.agents import AgentSession
from livekit.plugins import lokutor, openai, silero
session = AgentSession(
stt=lokutor.STT(language="es"),
llm=openai.LLM(),
tts=lokutor.TTS(voice="F1", language="es"),
vad=silero.VAD.load(),
)
Speech-to-text
STT streams over WS /ws/stt: interim transcripts while the user speaks, then a final transcript when the server sees the utterance end (a pause of about 0.7 s). recognize() transcribes one clip with POST /stt/transcribe. The text comes back written out, with punctuation, casing, digits and e-mail addresses.
stt = lokutor.STT(language="en")
event = await stt.recognize(frames) # a list of rtc.AudioFrame, any sample rate
print(event.alternatives[0].text)
| Parameter | Type | Default | Description |
|---|---|---|---|
api_key |
str |
env LOKUTOR_API_KEY |
Lokutor API key |
language |
str |
detected | One of the nine languages; regional codes such as es-ES are accepted. Set it whenever you know it: it keeps one-word replies reliable and sets how the text is written. Any other value is left to detection |
base_url |
str |
"wss://api.lokutor.com" |
API base URL |
Text-to-speech
tts = lokutor.TTS(voice="F1", language="en")
async with tts:
stream = tts.stream()
stream.push_text("Hello, world!")
stream.end_input()
async for audio in stream:
print(f"Got audio: {audio.frame.duration:.2f}s")
| Parameter | Type | Default | Description |
|---|---|---|---|
api_key |
str |
env LOKUTOR_API_KEY |
Lokutor API key |
voice |
str |
"F1" |
Voice slot, F1-F5 (female) or M1-M5 (male). Each language has its own native speaker in each slot |
language |
str | None |
"en" |
One of the nine languages; any other value uses the English speakers |
tokenizer |
tokenize.SentenceTokenizer |
blingfire |
Splits the streamed input into sentences; each sentence is one request, so the voice has per-sentence prosody |
base_url |
str |
"wss://api.lokutor.com" |
API base URL |
Audio comes out at 44.1 kHz mono; the pipeline resamples if it needs another rate.
License
Apache 2.0
Metadata
Release files for livekit-plugins-lokutor 1.8.13
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| livekit_plugins_lokutor-1.8.13.tar.gz | 12.6 kB | With provenance | Details for livekit_plugins_lokutor-1.8.13.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| livekit_plugins_lokutor-1.8.13-py3-none-any.whl | Python 3 | none | any | Details for livekit_plugins_lokutor-1.8.13-py3-none-any.whl |
Total release size: 26.8 kB
Release files / livekit_plugins_lokutor-1.8.13.tar.gz
| Download URL | livekit_plugins_lokutor-1.8.13.tar.gz |
|---|---|
| Size | 12.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1c636a45955991e08fdcb97d23c679ea9b0d181c179e8d74b82429c6271df563
|
|
BLAKE2b-256 checksum How to use checksums |
139ec5164e0bf202219d5dd2037c24a352e32270d84b6893fc1d8dcde1907e76
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 18, 2026.
Transparency logRelease files / livekit_plugins_lokutor-1.8.13-py3-none-any.whl
| Download URL | livekit_plugins_lokutor-1.8.13-py3-none-any.whl |
|---|---|
| Size | 14.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
980ab254d2a3900c39ca5a57c2cab4da18abe676f1cd701ee21a8636047bc552
|
|
BLAKE2b-256 checksum How to use checksums |
4812da45ff8c67ad33838926b2a62a59c8abad64537076f1fb48659cf37ec092
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 18, 2026.
Transparency logSecurity for livekit-plugins-lokutor 1.8.13
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for livekit_plugins_lokutor-1.8.13.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 18, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.