Messages
{
"type": "init",
"model": "rime/coda:0-id",
"speaker": "pujianti_plesmita",
"config": {
"sample_rate": 24000,
"encoding": "mp3"
}
}{
"type": "text",
"text": "Halo dari Rime Coda Indonesia."
}{
"type": "flush"
}{
"type": "clear"
}{
"type": "close"
}{
"type": "audio_chunk",
"data": "UklGRiQAAABXQVZFZm10IBAAAAABAAEA..."
}{
"type": "error",
"code": "invalid_speaker",
"message": "Invalid speaker for Rime Coda Indonesian."
}Rime Coda
Coda (Indonesian)
Text-to-Speech API for generating Bahasa Indonesian speech using Rime Coda TTS model. Establishes a WebSocket connection for real-time text-to-speech.
WSS
/
v1
/
tts
/
slng
/
rime
/
coda:0-id
Messages
{
"type": "init",
"model": "rime/coda:0-id",
"speaker": "pujianti_plesmita",
"config": {
"sample_rate": 24000,
"encoding": "mp3"
}
}{
"type": "text",
"text": "Halo dari Rime Coda Indonesia."
}{
"type": "flush"
}{
"type": "clear"
}{
"type": "close"
}{
"type": "audio_chunk",
"data": "UklGRiQAAABXQVZFZm10IBAAAAABAAEA..."
}{
"type": "error",
"code": "invalid_speaker",
"message": "Invalid speaker for Rime Coda Indonesian."
}bearer
type:http
API key issued by SLNG. Pass as Authorization: Bearer <token> in the WebSocket upgrade request headers.
method
type:string
GET
headers
type:object
X-Region-Override
type:enum
Target region override. Auto-selected if not provided. Available regions: ap-southeast-2.
Available options:
asia-southeast2Init Request (Rime Coda Indonesian)
type:object
Initialize a Rime Coda Indonesian TTS session.
Text Message (Rime Coda Indonesian)
type:object
Send text to synthesize using Rime Coda Indonesian.
Flush Message
type:object
Force any buffered text/audio to be finalized and delivered.
Clear Message
type:object
Clear any queued text/audio from the current session.
Close Message
type:object
Close the session and stop any further audio.
Audio Chunk (Rime Coda)
type:object
Chunk of base64-encoded audio data from Rime Coda TTS.
Error Response (Rime Coda)
type:object
Indicates an error occurred during Rime Coda TTS synthesis.
Was this page helpful?
⌘I