Moses for Pipecat

pipecat-moses adds Moses realtime speech-to-text and text-to-speech to Pipecat voice agents. Audio, text and transcripts are processed in Germany and not stored. Keys: API console (with the TTS and STT scopes). Prices: pricing.

Install

uv add pipecat-moses        # or: pip install pipecat-moses

Use

import os
from pipecat_moses import MosesSTTService, MosesTTSService

stt = MosesSTTService(
    api_key=os.environ["MOSES_API_KEY"],
    settings=MosesSTTService.Settings(language="de"),        # None detects the language
)
tts = MosesTTSService(
    api_key=os.environ["MOSES_API_KEY"],
    settings=MosesTTSService.Settings(voice="german/juergen", language="de"),
)

pipeline = Pipeline([transport.input(), stt, user_aggregator, llm, tts, transport.output(), assistant_aggregator])

Settings

ServiceSettingDefault
STTlanguageNone (detect). Set it when you know it.
STTendpoint_ms300: the server's own end-of-utterance pause (100–3000)
STTflush_on_vad_stop (argument)True
TTSvoicealba; list: GET /tts/v1/voices
TTSlanguagethe voice's language
TTSwarmup (argument)True: a voice worker is reserved for the connection

Limits

Each bot uses one STT stream and one TTS connection. Accounts start with 2 of each at once; ask via Support for more. A wrong key, a key without the needed scope or no credit stops the service with an error instead of reconnecting. Without the plugin, Pipecat's OpenAI services work too: OpenAI compatibility.

Source and example

Source, a complete voice-agent example and the changelog: PyPI and GitHub. Tested with Pipecat 1.17. BSD 2-Clause.