POST
/
v1
/
ai
/
voice
JavaScript
import Lmnt from 'lmnt-node';

const client = new Lmnt({
  apiKey: 'My API Key',
});

const voice = await client.voices.create({
  enhance: false,
  files: [fs.createReadStream('path/to/file')],
  name: 'new-voice',
});

console.log(voice.id);
{
  "description": "a newly created voice",
  "gender": "male",
  "id": "123456789abcdef",
  "name": "new-voice",
  "owner": "me",
  "starred": false,
  "state": "ready",
  "type": "instant"
}

Authorizations

X-API-Key
string
header
required

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

Body

multipart/form-data

Response

OK

Voice details