POST
/
v1
/
ai
/
speech
/
convert
curl --request POST \
  --url https://api.lmnt.com/v1/ai/speech/convert \
  --header 'Content-Type: multipart/form-data' \
  --header 'X-API-Key: <api-key>' \
  --form voice=ava \
  --form format=mp3 \
  --form sample_rate=24000 \
  --form language=en
This response does not have an example.

Authorizations

X-API-Key
string
header
required

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

Body

multipart/form-data
audio
file
required

The audio file to be converted into a new voice. Specify source language using the language parameter. Max file size: 1 MB.

voice
string
required

The voice id to convert the speech into. Voice ids can be retrieved by calls to List voices or Voice info.

format
enum<string>
default:
mp3

The file format of the audio output

Available options:
aac,
mp3,
mulaw,
raw,
wav
sample_rate
enum<number>
default:
24000

The desired output sample rate in Hz

Available options:
8000,
16000,
24000
language
enum<string>
default:
en

The language of the source audio. Two letter ISO 639-1 code.

Available options:
en,
es,
pt,
fr,
de,
zh,
ko,
hi,
ja,
ru,
it,
tr

Response

200
application/octet-stream
OK

The response is of type file.

Was this page helpful?