{
"type": "init",
"model": "rime/arcana:en",
"speaker": "astra",
"config": {
"sample_rate": 24000,
"encoding": "pcm"
}
}{
"type": "text",
"text": "Hello from Rime Arcana English. Testing text to speech synthesis."
}{
"type": "flush"
}{
"type": "clear"
}{
"type": "cancel"
}{
"type": "audio_chunk",
"data": "UklGRiQAAABXQVZFZm10IBAAAAABAAEA...",
"contextId": "ctx_abc123"
}{
"type": "timestamps",
"word_timestamps": {
"words": [
"Hello",
"from",
"Arcana"
],
"start": [
0,
0.32,
0.58
],
"end": [
0.31,
0.57,
1.02
]
}
}{
"type": "error",
"message": "Text is too long. Maximum 500 characters per request."
}Text-to-Speech API for generating English speech from text using Rime Arcana TTS model. Establishes a WebSocket connection for real-time text-to-speech.
{
"type": "init",
"model": "rime/arcana:en",
"speaker": "astra",
"config": {
"sample_rate": 24000,
"encoding": "pcm"
}
}{
"type": "text",
"text": "Hello from Rime Arcana English. Testing text to speech synthesis."
}{
"type": "flush"
}{
"type": "clear"
}{
"type": "cancel"
}{
"type": "audio_chunk",
"data": "UklGRiQAAABXQVZFZm10IBAAAAABAAEA...",
"contextId": "ctx_abc123"
}{
"type": "timestamps",
"word_timestamps": {
"words": [
"Hello",
"from",
"Arcana"
],
"start": [
0,
0.32,
0.58
],
"end": [
0.31,
0.57,
1.02
]
}
}{
"type": "error",
"message": "Text is too long. Maximum 500 characters per request."
}API key issued by SLNG. Pass as Authorization: Bearer <token> in the WebSocket upgrade request headers.
GET
Target region override. Auto-selected if not provided. Available regions: eu-north-1, ap-southeast-2.
eu-north-1, ap-southeast-2Initialize a English Rime Arcana TTS session.
Send English text to synthesize.
Force any buffered text/audio to be finalized and delivered.
Clear any queued text/audio from the current session.
Cancel the current generation and stop any further audio.
Chunk of base64-encoded audio data from Rime Arcana TTS.
Word-level timing data for synthesized audio from Rime Arcana.
Indicates an error occurred during Rime Arcana TTS synthesis.
Was this page helpful?