mistralM

Docs

sideBar

Audio Voices

API for voice management.

GET /v1/audio/voices

List all voices

Offset pagination will not be supported anymore. Use GET /v2/audio/voices instead.

Parameters

limit
integerquery

Maximum number of voices to return

offset
integerquery

Offset for pagination

type
"all" | "custom" | "preset"query

Filter the voices between customs and presets

Responses

Successful Response

items
array<VoiceResponse>* required
VoiceResponse

Schema for voice response

age
integer | null
color
string | null
created_at
date-time* required
description
string | null
gender
string | null
id
string* required
kind
"ivc" | "pvc"
languages
array<string>
name
string* required
retention_notice
integer

Default Value: 30

slug
string | null
tags
array<string> | null
trimmed_seconds
number | null
type
"preset" | "custom"* required
user_id
string | null* required
page
integer* required
page_size
integer* required
total
integer* required
total_pages
integer* required

POST /v1/audio/voices

Create a new voice

Create a new voice with a base64-encoded audio sample

Request Example

{
  "name": "ipsum eiusmod"
}

Request Body

Request model for creating a new voice with base64 audio.

age
integer | null
color
string | null
description
string | null
gender
"female" | "male" | "neutral"
languages
array<string>Max Items: 16
name
stringMin Length: 1Max Length: 128* required
retention_notice
integerMin: 1Max: 365

Default Value: 30

sample_audio
string | null

Base64-encoded audio file

sample_filename
string | null

Original filename for extension detection

tags
array<string> | null

Responses

Successful Response

age
integer | null
color
string | null
created_at
date-time* required
description
string | null
gender
string | null
id
string* required
kind
"ivc" | "pvc"
languages
array<string>
name
string* required
retention_notice
integer

Default Value: 30

slug
string | null
tags
array<string> | null
trimmed_seconds
number | null
type
"preset" | "custom"* required
user_id
string | null* required

GET /v1/audio/voices/{voice_id}

Get voice details

Get voice details (excluding sample)

Parameters

voice_id
stringpath* required

Responses

Successful Response

age
integer | null
color
string | null
created_at
date-time* required
description
string | null
gender
string | null
id
string* required
kind
"ivc" | "pvc"
languages
array<string>
name
string* required
retention_notice
integer

Default Value: 30

slug
string | null
tags
array<string> | null
trimmed_seconds
number | null
type
"preset" | "custom"* required
user_id
string | null* required

DELETE /v1/audio/voices/{voice_id}

Delete a custom voice

Delete a custom voice

Parameters

voice_id
stringpath* required

Responses

Successful Response

age
integer | null
color
string | null
created_at
date-time* required
description
string | null
gender
string | null
id
string* required
kind
"ivc" | "pvc"
languages
array<string>
name
string* required
retention_notice
integer

Default Value: 30

slug
string | null
tags
array<string> | null
trimmed_seconds
number | null
type
"preset" | "custom"* required
user_id
string | null* required

PATCH /v1/audio/voices/{voice_id}

Update voice metadata

Update voice metadata (name, gender, languages, age, tags, retention notice).

Parameters

voice_id
stringpath* required

Request Example

{}

Request Body

Request model for partially updating voice metadata.

age
integer | null
description
string | null
gender
"female" | "male" | "neutral"
languages
array<string> | null
name
string | null
retention_notice
integer | null
tags
array<string> | null

Responses

Successful Response

age
integer | null
color
string | null
created_at
date-time* required
description
string | null
gender
string | null
id
string* required
kind
"ivc" | "pvc"
languages
array<string>
name
string* required
retention_notice
integer

Default Value: 30

slug
string | null
tags
array<string> | null
trimmed_seconds
number | null
type
"preset" | "custom"* required
user_id
string | null* required

GET /v1/audio/voices/{voice_id}/sample

Get voice sample audio

Get the audio sample for a voice

Parameters

voice_id
stringpath* required

Responses

binary

Successful Response

GET /v2/audio/voices

List voices, cursor-paginated

List voices, cursor-paginated

Parameters

page_size
integerquery

Maximum number of voices to return

page_token
string | nullquery

Cursor returned as next_page_token by the previous page

type
"all" | "custom" | "preset"query

Filter the voices between customs and presets

gender
array<"female" | "male" | "neutral"> | nullquery

Keep voices matching any of these genders

language
array<string> | nullquery

Keep voices supporting any of these languages

query
string | nullquery

Case-insensitive match on voice name

kind
"ivc" | "pvc"query

Keep voices cloned with this technology

Responses

Successful Response

data
array<VoiceResponse>* required
VoiceResponse

Schema for voice response

age
integer | null
color
string | null
created_at
date-time* required
description
string | null
gender
string | null
id
string* required
kind
"ivc" | "pvc"
languages
array<string>
name
string* required
retention_notice
integer

Default Value: 30

slug
string | null
tags
array<string> | null
trimmed_seconds
number | null
type
"preset" | "custom"* required
user_id
string | null* required
next_page_token
string | null

Cursor for the next page, null on the last page