Cloud TTS
Cloud TTS with guardrails: Azure, Amazon Polly and Google Cloud
Cloud voices under strict guard rails: session-only credentials, SSML validation and offline sandboxes before real spend.
Why sandboxes first
Sandbox runs validate SSML and catalogs without hitting real endpoints. It catches invalid SSML, unsupported voices and missing auth patterns before the bill arrives. Sandbox pass ≠ production pass — credentials, region, billing and network still need direct verification.
Session-only credentials
Azure Speech, Amazon Polly and Google Cloud TTS credentials live only for the current session. Do not check them into the project folder or commit app config; restart clears them. This is your first security boundary.
Provider matrix
| Provider | Strength | Guard rails |
|---|---|---|
| Azure Speech | High-fidelity neural voices, SSML | Validate SSML sandbox; rotate keys; monitor region availability. |
| Amazon Polly | Deep voice catalog, Neural tier | Limit concurrency to subscription; watch Lexicon URLs and billing. |
| Google Cloud TTS | Journey/Studio voices, variants | Lock region; cache render output; verify quota before batch jobs. |
Cost control
- Render one block in sandbox.
- Measure minutes at the provider’s published rate.
- Batch 5 blocks, sample quality, then full batch.
- Report spend per project to auditors monthly.