Skip to main content

Text to speech

Text to speech

Request Body REQUIRED
data object REQUIRED
text Text REQUIRED

Text to synthesize

lang LangCodeExperimental REQUIRED

Possible values: [az, en, en-gb, en-us, fr, de, tr, ar, it, ru, uk, es, es-mx, pt, pt-br, sv, pl, id, nl, fi, hu, el, cs, sk, da, bg, ro, he, hi, zh, ja, yue, ko, en-gpt, en-zh, en-parler, en-palabra-llm, en-zns, fr-zns, en-f5, en-orpheus]

voice_id Voice Id REQUIRED

Voice ID

Responses
200

Successful Response

Schema OPTIONAL
ok Ok OPTIONAL

Indicates if the request was successful or not.

data object
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: [az, en, en-gb, en-us, fr, de, tr, ar, it, ru, uk, es, es-mx, pt, pt-br, sv, pl, id, nl, fi, hu, el, cs, sk, da, bg, ro, he, hi, zh, ja, yue, ko, en-gpt, en-zh, en-parler, en-palabra-llm, en-zns, fr-zns, en-f5, en-orpheus]

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

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.

speech_tts_saas_speech_tts_post
POST /saas/speech/tts
Body
Loading...
https://api.palabra.ai
curl -L -X POST 'https://api.palabra.ai/saas/speech/tts' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json'