GET
/
v1
/
ai
/
speech
curl --request GET \
  --url https://api.lmnt.com/v1/ai/speech
"HTTP/1.1 200 OK\nContent-Type: audio/wav\nX-Sample-Rate: 24000\nX-Duration-Samples: 57000\n\n<binary data>"

Specify either speed or length, not both; otherwise a request with both will result in an 500 server error as the desired speed might not match the desired length.

For more detailed output such as the duration of each spoken word, use the Speech POST request.

Query Parameters

X-API-Key
string
required

Your API key; get it from your LMNT account page.

voice
string
required

The voice id of the voice to use for synthesis; voice ids can be retrieved by calls to List voices or Voice info.

text
string
required

The text to synthesize; max 5000 characters per request (including spaces).

format
string

The file format of the synthesized audio output, either acc, mp3, mulaw, raw, wav; defaults to mp3.

speed
number

The talking speed of the generated speech, a floating point value between 0.25 (slow) and 2.0 (fast); defaults to 1.0.

length
number

Produce speech of this length in seconds; maximum 300.0 (5 minutes).

seed
integer

Seed used to specify a different take; defaults to random (see here for more details).

Response

200 - */*

The response is of type object.