Skip to content

Normalize synthesis parameters

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

Rewrites synthesis parameters to platform-safe values: forces f=wav, sets sr (default 16000), strips sampleRate, format and fsFix. Every other parameter is returned unchanged. Requires text or text_b64 in the query.

The response holds the normalized query parameters. Send them as the query of a GET or HEAD synthesis request for the same engine. The audio is WAV for every engine and model.

Permission

This operation needs the permission tts:synthesize:manage.

path
required
string

Engine name, for example gc. The response is the same for every value.

text
string

Plain text to synthesize. Required unless text_b64 is set.

text_b64
string

Base64-encoded text. Required unless text is set.

The normalized query parameters.

Media typeapplication/json
object
query
required

The normalized query parameters, by name.

object
key
additional properties
string
Examplegenerated
{
"query": {
"additionalProperty": "example"
}
}

Missing text.

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

Unauthorized

Forbidden

Bad gateway (upstream adapter error)