PUT
/
v1
/
ai
/
voice
/
{id}
JavaScript
import Lmnt from 'lmnt-node';

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

const voice = await client.voices.update('123');

console.log(voice.voice);
{
  "voice": {
    "description": "<string>",
    "gender": "<string>",
    "id": "<string>",
    "name": "<string>",
    "owner": "system",
    "starred": true,
    "state": "<string>",
    "type": "instant",
    "preview_url": "<string>"
  }
}

Authorizations

X-API-Key
string
header
required

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

Path Parameters

id
string
required

The id of the voice, which can be retrieved by a call to List voices.

Body

application/json
description
string

A description of this voice.

gender
string

A tag describing the gender of this voice, e.g. male, female, nonbinary.

name
string

The display name for this voice.

starred
boolean

If true, adds this voice to your starred list.

Response

OK

voice
object
required

Voice details