Skip to main content

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.9.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for livekit-plugins-lokutor 1.9.0
File Size Uploaded Provenance Actions
livekit_plugins_lokutor-1.9.0.tar.gz 12.5 kB With provenance Details for livekit_plugins_lokutor-1.9.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for livekit-plugins-lokutor 1.9.0
File Interpreter ABI Platform Actions
livekit_plugins_lokutor-1.9.0-py3-none-any.whl Python 3 none any Details for livekit_plugins_lokutor-1.9.0-py3-none-any.whl

Total release size: 26.8 kB

Release files / livekit_plugins_lokutor-1.9.0.tar.gz

Download URL livekit_plugins_lokutor-1.9.0.tar.gz
Size 12.5 kB
Tags Source
SHA-256 checksum
How to use checksums
45714f9c3849be33367955d47674cf260b538174bdc5a5540cfaadf79ff98312
BLAKE2b-256 checksum
How to use checksums
665c7581b63479f3110b067fbb03fbda6fd3dc6c8c3d8484f65530806f569c2a
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 25, 2026.

Transparency log

Release files / livekit_plugins_lokutor-1.9.0-py3-none-any.whl

Download URL livekit_plugins_lokutor-1.9.0-py3-none-any.whl
Size 14.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c9eb8fa33d542a675c9844edebeeda045a59ea98d4995c634b17e7d6154a7b63
BLAKE2b-256 checksum
How to use checksums
7e5114189de4c28a6cb61d1006f9bc7aabfc4d9fff880060826191b1e82ec548
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 25, 2026.

Transparency log

Security for livekit-plugins-lokutor 1.9.0

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.

Select from 2 files

Attestation for livekit_plugins_lokutor-1.9.0.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 25, 2026.

Transparency log

A 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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page