Normalize a synthesis URL
GET
/v1/adapters/tts/normalize/{path}
const url = 'https://example.com/v1/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/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.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”path
required
string
The engine path to normalize (e.g. gc).
Query Parameters
Section titled “Query Parameters”text
string
Plain text to synthesize. Required unless text_b64 is set.
text_b64
string
Base64-encoded text. Required unless text is set.
Responses
Section titled “Responses”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)