{"id":23119,"library":"livekit-plugins-rime","title":"LiveKit Agents Plugins Rime","description":"A LiveKit Agents plugin for Rime, providing text-to-speech TTS capabilities within the LiveKit realtime AI agent framework. Current version 1.5.7, requires Python >=3.10. Active development with frequent releases.","status":"active","version":"1.5.7","language":"python","source_language":"en","source_url":"https://github.com/livekit/agents","tags":["livekit","rime","tts","text-to-speech","realtime-ai"],"install":[{"cmd":"pip install livekit-plugins-rime","lang":"bash","label":"Install from PyPI"}],"dependencies":[{"reason":"Core framework dependency; plugin requires livekit.agents namespace.","package":"livekit-agents","optional":false}],"imports":[{"note":"Old import paths with underscores are incorrect; the official namespace uses dots.","wrong":"from livekit_plugins_rime import RimeTTS","symbol":"RimeTTS","correct":"from livekit.plugins.rime import RimeTTS"},{"note":"TTS base class is from agents, not the plugin.","wrong":"from livekit.plugins.rime import TTS","symbol":"TTS","correct":"from livekit.agents.tts import TTS"}],"quickstart":{"code":"import asyncio\nfrom livekit.plugins.rime import RimeTTS\n\nasync def main():\n    tts = RimeTTS(\n        api_key=os.environ.get(\"RIME_API_KEY\", \"\"),\n        voice_id=\"test-voice\"\n    )\n    async with tts.synthesize(\"Hello, world!\") as stream:\n        async for chunk in stream:\n            print(chunk.data)\n\nasyncio.run(main())","lang":"python","description":"Basic usage of RimeTTS to synthesize speech, assuming API key is set in environment."},"warnings":[{"fix":"Use `async with tts.synthesize(text) as stream` and iterate over chunks.","message":"Version 1.0+ changed the TTS interface to async generator streams. Old synchronous `synthesize()` method removed.","severity":"breaking","affected_versions":"<1.0.0"},{"fix":"Replace `voice=\"...\"` with `voice_id=\"...\"`.","message":"The `voice` parameter in RimeTTS is deprecated in favor of `voice_id`. Passing `voice` will raise a deprecation warning.","severity":"deprecated","affected_versions":"1.3.0+"},{"fix":"Always either set `RIME_API_KEY` env var or provide `api_key` argument.","message":"The Rime API key must be set via environment variable `RIME_API_KEY` or passed in constructor. If neither is found, the plugin fails silently.","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Install livekit-agents: `pip install livekit-agents`","cause":"Missing metadata or incorrect installation of livekit-agents base package.","error":"ModuleNotFoundError: No module named 'livekit'"},{"fix":"Use `async with tts.synthesize(text) as stream:` and then iterate with `async for chunk in stream:`","cause":"Forgetting to await or use async context manager when consuming TTS stream.","error":"Object of type 'coroutine' has no attribute 'data'"},{"fix":"Set environment variable or pass `api_key` parameter explicitly.","cause":"Neither `RIME_API_KEY` environment variable nor `api_key` arg was set.","error":"RuntimeError: Rime API key not provided"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}