Arcana and Mist model families via Rime’s HTTP endpoint.
Rime TTS
RimeTTS targets the Rime HTTP endpoint. Both Arcana (high fidelity) and Mist (low latency) model families are supported. The provider requests audio/pcm and yields raw PCM_S16LE chunks at the configured sample rate.
import asynciofrom getpatter import Patter, Twilio, DeepgramSTT, RimeTTSphone = Patter(carrier=Twilio(), phone_number="+15550001234")agent = phone.agent( stt=DeepgramSTT(), # DEEPGRAM_API_KEY from env tts=RimeTTS(model="arcana", speaker="astra"), # RIME_API_KEY from env system_prompt="You are a helpful assistant.",)asyncio.run(phone.serve(agent))
Mist v2 — low-latency, streaming-friendly:
from getpatter import RimeTTSfast = RimeTTS(model="mistv2", speaker="cove", speed_alpha=1.1, reduce_latency=True)
Low-level usage
from getpatter.providers.rime_tts import RimeTTS as _LowLevelTTStts = _LowLevelTTS( api_key="...", # or RIME_API_KEY env var model="arcana", speaker="astra", lang="eng", sample_rate=16000,)async for chunk in tts.synthesize("Hello from the Patter pipeline."): ...await tts.close()