Skip to main content

Regenerate TTS sample for an existing voice in a given language

Regenerate the TTS sample for an existing user's voice in the specified language.

Replaces all previous TTS samples for the voice with a single freshly synthesized sample. Concurrent regeneration attempts on the same voice yield 403 (resource locked).

Path Parameters
voice_id Voice Id REQUIRED
Request Body REQUIRED
data object REQUIRED
lang_code LangCodeExperimental REQUIRED

Possible values: [ar, ar-ae, ar-sa, az, be, bg, bs, ca, cs, cy, da, de, el, en, en-au, en-ca, en-gb, en-us, es, es-mx, es-co, es-ar, es-ch, es-la, et, fi, fil, fr, fr-ca, gl, he, hi, hr, hu, id, is, it, ja, kk, ko, lt, lv, mk, ms, nl, no, pl, pt, pt-br, ro, ru, sk, sl, sr, sv, sw, ta, th, tr, uk, ur, vi, zh, zh-hans, zh-hant, auto, ba, bn, eo, eu, fa, ga, ia, mn, mr, mt, ug, yue]

Responses
200

Successful Response

Schema OPTIONAL
ok Ok OPTIONAL

Indicates if the request was successful or not.

data object
user_id User Id

User ID

blob_id uuid

TTS sample blob ID

url uri

Possible values: 1 ≤ length ≤ 2083

TTS sample URL

audio_metadata object
format Format

Audio format

codec Codec

Audio codec

duration Duration

Audio duration in seconds

mime_type MIMEType

Possible values: [audio/x-wav, audio/wav, audio/mp3, audio/x-m4a, audio/mpeg, audio/flac, audio/ogg, video/webm, video/mp4, video/mpeg]

Core MIME types

text object
content Content

Possible values: length ≤ 10000

lang LangCodeExperimental

Possible values: [ar, ar-ae, ar-sa, az, be, bg, bs, ca, cs, cy, da, de, el, en, en-au, en-ca, en-gb, en-us, es, es-mx, es-co, es-ar, es-ch, es-la, et, fi, fil, fr, fr-ca, gl, he, hi, hr, hu, id, is, it, ja, kk, ko, lt, lv, mk, ms, nl, no, pl, pt, pt-br, ro, ru, sk, sl, sr, sv, sw, ta, th, tr, uk, ur, vi, zh, zh-hans, zh-hant, auto, ba, bn, eo, eu, fa, ga, ia, mn, mr, mt, ug, yue]

model Model

Model

filename Filename

Filename

mime_type AllowedMIMEType

Possible values: [audio/x-wav, audio/wav, audio/mp3, audio/x-m4a, audio/mpeg, audio/flac, video/webm, video/mp4, video/mpeg]

Allowed MIME types

display_name Display Name

Display name

description Description OPTIONAL

Description

utc_created_at date-time

UTC created at

default

Default Response

Schema OPTIONAL
ok Ok OPTIONAL

Indicates if the request was successful or not.

errors object[]

List of errors

type uri

Possible values: 1 ≤ length ≤ 2083

A string containing a URI reference that identifies the problem type.

status Status

Possible values: 399 < value < 600

A number indicating the HTTP status code.

title Title

Possible values: 5 ≤ length

A string containing a short, human-readable summary of the problem type.

detail Detail

Possible values: 5 ≤ length

A string containing a human-readable explanation specific to this occurrence of the problem.

instance Instance

Possible values: 1 ≤ length

A string containing a URI reference that identifies the specific occurrence of the problem.

error_code Error Code

A Number that indicates the error type that occurred.