curl --request POST \
  --url https://users.rime.ai/v1/rime-tts \
  --header 'Accept: audio/x-mulaw' \
  --header 'Authorization: Bearer <authorization>' \
  --header 'Content-Type: application/json' \
  --data '{
  "speaker": "<string>",
  "text": "<string>",
  "modelId": "<string>",
  "lang": "eng",
  "speedAlpha": 1.0,
  "reduceLatency": false,
  "pauseBetweenBrackets": false,
  "phonemizeBetweenBrackets": false,
  "inlineSpeedAlpha": "3, 0.5"
}'

Streaming MULAW returns headerless files.

Fixed Headers

Accept
audio/x-mulaw
required

Variable Parameters

speaker
string
required

Must be one of the voices listed in our documentation.

text
string
required

The text you’d like spoken

lang
string
default:"eng"

If provided, the language must match the language spoken by the provided speaker. This can be checked in our voices documentation.

pauseBetweenBrackets
bool
default:"false"

When set to true, adds pauses between words enclosed in angle brackets. The number inside the brackets specifies the pause duration in milliseconds.
Example: “Hi. <200> I’d love to have a conversation with you.” adds a 200ms pause between the first and second sentences.

phonemizeBetweenBrackets
bool
default:"false"

When set to true, you can specify the phonemes for a word enclosed in curly brackets.
Example: “{h’El.o} World” will pronounce “Hello” as expected. More details on this feature are incoming!

inlineSpeedAlpha
string

Comma-separated list of speed values applied to words in square brackets. Values < 1.0 speed up speech, > 1.0 slow it down. Example: “This sentence is [really] [fast]” with inlineSpeedAlpha “0.5, 3” will make “really” slow and “fast” fast.

modelId
string

Choose mistv2 for hyper-realistic conversational voices or mist for Rime’s prior model (default: mist)

speedAlpha
float
default:"1.0"

Adjusts the speed of speech. Lower than 1.0 is faster than default. Higher than 1.0 is slower than default.

reduceLatency
bool
default:"false"

Reduces the latency of response, at the cost of some possible mispronunciation of digits and abbreviations.

curl --request POST \
  --url https://users.rime.ai/v1/rime-tts \
  --header 'Accept: audio/x-mulaw' \
  --header 'Authorization: Bearer <authorization>' \
  --header 'Content-Type: application/json' \
  --data '{
  "speaker": "<string>",
  "text": "<string>",
  "modelId": "<string>",
  "lang": "eng",
  "speedAlpha": 1.0,
  "reduceLatency": false,
  "pauseBetweenBrackets": false,
  "phonemizeBetweenBrackets": false,
  "inlineSpeedAlpha": "3, 0.5"
}'