Normalize synthesis parameters
const url = 'https://example.com/v1/a/adapters/tts/normalize/example';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}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.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Engine name, for example gc. The response is the same for every value.
Query Parameters
Section titled “Query Parameters”Plain text to synthesize. Required unless text_b64 is set.
Base64-encoded text. Required unless text is set.
Responses
Section titled “Responses”The normalized query parameters.
object
The normalized query parameters, by name.
object
Examplegenerated
{ "query": { "additionalProperty": "example" }}Missing text.
object
Examplegenerated
{ "error": "example"}Unauthorized
Forbidden
Bad gateway (upstream adapter error)