Skip to content

Normalize a synthesis URL

GET
/v1/adapters/tts/normalize/{path}
curl --request GET \
--url https://example.com/v1/adapters/tts/normalize/example \
--header 'Authorization: Bearer <token>'

Rewrites a synthesis URL to platform-safe parameters: forces f=wav, sets sr (default 16000), strips sampleRate, format and fsFix. Requires text or text_b64 in the query. Returns the normalized URL.

path
required
string

The engine path to normalize (e.g. gc).

text
string

Plain text to synthesize. Required unless text_b64 is set.

text_b64
string

Base64-encoded text. Required unless text is set.

Normalized URL.

Media typeapplication/json
object
url
required
string
Examplegenerated
{
"url": "example"
}

Missing text.

Media typeapplication/json
object
error
string
Examplegenerated
{
"error": "example"
}

Unauthorized

Forbidden

Bad gateway (upstream adapter error)