What is the base_url if I am using on-prem rime in...
# ask-ai
a
What is the base_url if I am using on-prem rime instance?
t
Thanks for reaching out, Binod. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
Which Rime deployment do you have on-prem (official Rime server, Docker image, or a custom build)? Also tell me: • the port you exposed (if any), and • whether you're accessing it via hostname, IP, or a reverse proxy. With that I can tell you the exact
base_url
format to use. Sources: Text-to-speech (TTS) models | LiveKit Docs | Rime TTS plugin guide | LiveKit Docs | Rime TTS | LiveKit docs
a
exposed port is 8000. I am accessing it via IP address
t
You're using an on‑prem Rime instance on port 8000 via IP — set the base_url to: http//<your ip address>8000 For example: http://192.168.1.100:8000 Use that value in your Rime TTS plugin configuration (
base_url
) and ensure the Rime service is bound to the host interface (not only localhost) so the IP is reachable. Would you like the exact config snippet for your integration? Sources: Rime TTS plugin guide | LiveKit Docs | Self-hosting the Ingress Service | LiveKit docs
a
I am getting this error when I use this base_url {“level”: “WARNING”, “name”: “livekit.agents”, “message”: “failed to synthesize speech, retrying in 0.1s\nTraceback (most recent call last):\n File \“/usr/local/lib/python3.10/site-packages/livekit/agents/tts/tts.py\“, line 265, in _main_task\n await self._run(output_emitter)\n File \“/usr/local/lib/python3.10/site-packages/livekit/plugins/rime/tts.py\“, line 257, in _run\n raise APIStatusError(\nlivekit.agents._exceptions.APIStatusError: Bad Request (status_code=400, request_id=None, body=None, retryable=False)“, “tts”: “livekit.plugins.rime.tts.TTS”, “attempt”: 1, “streamed”: false, “pid”: 94, “job_id”: “AJ_Vv9SRQXvSpPY”, “room_id”: “RM_zsoGN8moptLy”, “timestamp”: “2025-11-27T014807.913834+00:00”}
t
Thanks — I’m looking at the 400 error from the Rime plugin. That error means the request LiveKit is sending to your on‑prem Rime instance doesn’t match what that server expects. To diagnose quickly, please provide: • The exact IP you used in
base_url
(e.g., `http://192.168.1.100:8000`) • One example request payload LiveKit sent (if you can capture it — curl, proxy, or agent logs) or the agent log lines immediately before the 400 • Any relevant Rime server logs for that request (request path, headers received, and response body if present) If you prefer a quick workaround: I can provide a minimal custom TTS node implementation that calls your on‑prem Rime endpoint with a payload you control, or a small proxy transforming LiveKit’s calls into the format your Rime expects. Which would you like: a custom TTS snippet or a proxy example? Sources: Rime TTS plugin guide | LiveKit Docs | Text-to-speech (TTS) models | LiveKit Docs
q
@adventurous-potato-31716 can you share the payload your passing it into the plugin
t
Thanks — I can help. I need the payload Binod is sending so I can compare it to what your Rime server expects. Please paste: • The full JSON body sent to the Rime endpoint (exact text) • The full request path/URL used (including any path after the host/port) • Any headers sent (especially Content-Type and Authorization) • The exact base_url you configured (e.g., `http://192.168.1.100:8000`) If you can’t share full values, a masked example that preserves field names and structure will do. Once I have that I’ll point out the mismatch and give a corrected request or a small proxy/custom TTS snippet. Which do you prefer?
q
@adventurous-potato-31716 did you curl test this end point http://192.168.1.100:8000 once
t
Yes — asking Binod to run a quick curl test is a good next step. Please have Binod run this curl (replace IP if different) and paste the exact response:
Copy code
curl -v -X POST "http://192.168.1.100:8000/v1/speak" \
  -H "Content-Type: application/json" \
  -d '{"text":"hello world","voice":"rainforest"}'
If your Rime endpoint uses a different path (not
/v1/speak
) or requires an Authorization header, run this variant and include the header shown:
Copy code
curl -v -X POST "http://192.168.1.100:8000/YOUR_PATH" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_TOKEN" \
  -d '{"text":"hello world","voice":"rainforest"}'
Please paste: • The full curl stdout/stderr (including HTTP status, response headers, and body) • The exact request path used and any headers required by your Rime server Once I have that output I’ll compare it to the payload LiveKit sends and give a concrete fix (correct payload/headers, a proxy transform, or a custom TTS snippet).