livekit-plugins-moses
Moses realtime speech-to-text and text-to-speech for LiveKit Agents.
- Speech-to-text in 25 European languages: partial transcripts while the user speaks, and the final as soon as
the agent's turn handling ends the turn (the plugin supports
manual_flush). - Text-to-speech in 7 languages (English, German, French, Italian, Portuguese, Spanish, Dutch), with 27 built-in voices or your own recorded voice. The LLM's text streams in as it is generated; the first audio of an answer starts after the first clause.
- Hosted in Germany, nothing stored: audio, text and transcripts are processed in memory and dropped. Only the amount (seconds of audio, characters) is recorded for billing. Prepaid credit, no subscription.
Maintained by Moses AI, the company behind the service.
Installation
pip install livekit-plugins-moses
Get an API key with the TTS and STT scopes at moses-ai.com/console (new
accounts come with trial credit) and set it as MOSES_API_KEY.
Usage
from livekit.agents import AgentSession
from livekit.plugins import moses, openai, silero
session = AgentSession(
vad=silero.VAD.load(),
stt=moses.STT(language="de"), # or None to detect the language
llm=openai.LLM(model="gpt-4.1-mini"),
tts=moses.TTS(voice="german/juergen", language="de"),
)
moses.STT
| Argument | Default | |
|---|---|---|
api_key |
MOSES_API_KEY |
Key with the STT scope |
language |
None (detect) |
bg cs da de el en es et fi fr hr hu it lt lv mt nl pl pt ro ru sk sl sv uk. Set it when you know it: short utterances are then decoded again in that language if they come out as English. |
endpoint_ms |
server default (300) | The server's own end-of-utterance pause, 100–3000 ms |
interim_results |
True |
Partial transcripts |
base_url |
https://moses-ai.com |
stt.update_options(language=..., endpoint_ms=...) applies to open streams without reconnecting.
stt.recognize(buffer) transcribes a whole recording through the file endpoint.
moses.TTS
| Argument | Default | |
|---|---|---|
api_key |
MOSES_API_KEY |
Key with the TTS scope |
voice |
alba |
English: alba, anna, vera, marius, jean, … (21 voices); german/juergen, french/estelle, italian/giovanni, portuguese/rafael, spanish/lola, dutch/daan; your own voice: clone:<name>. List: GET https://moses-ai.com/tts/v1/voices |
language |
the voice's | en de fr it pt es nl. With clone:<name>, your voice speaks that language |
first_chunk_chars |
30 | Minimum length before the first segment may be cut at a comma |
warmup |
True |
Reserve a voice worker when a connection opens, for the fastest first audio |
base_url |
https://moses-ai.com |
Audio is 24 kHz mono PCM. Connections are pooled: the next answer reuses the warm connection; an interrupted answer's connection is closed and a fresh one is opened in the background.
Running the example
examples/agent.py is a complete voice agent (Moses STT and TTS, an OpenAI LLM, Silero VAD):
pip install livekit-plugins-moses "livekit-agents[openai,silero]~=1.9" python-dotenv
cp env.example .env # MOSES_API_KEY, OPENAI_API_KEY
python examples/agent.py console # talk to it in the terminal
python examples/agent.py dev # or in a LiveKit room (LIVEKIT_URL, LIVEKIT_API_KEY, LIVEKIT_API_SECRET)
MOSES_LANGUAGE=de MOSES_VOICE=german/juergen python examples/agent.py console talks German.
Latency
Measured from Germany, network included:
- STT: the final transcript arrives about 0.12 s after the stream is flushed.
- TTS: the first audio arrives about 0.13 s after the first text.
Limits and errors
- Per account at once: 2 STT streams and 2 TTS connections by default (ask for more).
- A wrong key, a key without the needed scope, or no credit raises a non-retryable error. A lost worker or a full server is retried by the framework.
revisionevents (a final decoded again in the set language) are logged, not emitted.
Compatibility
Tested with LiveKit Agents 1.9.0. Python 3.10+.
Links
- Pricing · STT API · TTS API
- Changelog: CHANGELOG.md
License
Apache 2.0, see LICENSE.
Metadata
Release files for livekit-plugins-moses 0.1.0
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_moses-0.1.0.tar.gz | 17.7 kB | Without provenance | Details for livekit_plugins_moses-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| livekit_plugins_moses-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for livekit_plugins_moses-0.1.0-py3-none-any.whl |
Total release size: 35.9 kB
Release files / livekit_plugins_moses-0.1.0.tar.gz
| Download URL | livekit_plugins_moses-0.1.0.tar.gz |
|---|---|
| Size | 17.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
700fc6721592e8e664ec601a23bd29615e8ae51d767cd01e9124cd279cd058f2
|
|
BLAKE2b-256 checksum How to use checksums |
50dd01d83414b116b2918d61c6b62181d0d1b9438ed91e0bfdffca9e953cfc02
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.13.12 {"installer":{"name":"uv","version":"0.13.12","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / livekit_plugins_moses-0.1.0-py3-none-any.whl
| Download URL | livekit_plugins_moses-0.1.0-py3-none-any.whl |
|---|---|
| Size | 18.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6972e1c951bba5eb5cd6710b594ed6569ff8f44248d6604b4c2ee769af105d4b
|
|
BLAKE2b-256 checksum How to use checksums |
a0ed47bed7f1e7970b066db10d027a40b000f8d5a040d6e0a86aacf6b9468c78
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.13.12 {"installer":{"name":"uv","version":"0.13.12","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Security for livekit-plugins-moses 0.1.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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
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.