API ReferenceText-to-Speech ModelsGoogle Cloud
Wavenet
Google Cloud WaveNet — neural voices with broad language support, available on all plans.
DeepMind WaveNet voices — same quality tier as Neural2 but with broader language coverage, including Indonesian, Chinese, Russian, and Turkish. Free-plan accessible.
| Endpoint | POST /api/v1/tts/synthesize |
Model ID (ttsModel) | google-wavenet |
| Provider | Google Cloud (Free + paid) |
| Character Limit | 3,000 (Free plan: 1,000) |
| Cost | 500 / 1K chars |
Shared conventions
Auth, the voice→provider rule, rate limits, and the full error table live on the Speech API page. Below is only what's specific to Wavenet.
Model-specific notes
- Extra languages vs Neural2 — Indonesian, Chinese, Russian, Turkish, and more.
- Works on every plan, including Free (1,000 chars/request on Free).
- Supports
speedandpitch. Language is fixed by the voice (e.g.id-ID-Wavenet-A) — pick a voice in the language you need; there is no language-override.
Request body
| Parameter | Type | Required | Description |
|---|---|---|---|
text | string | Yes | Text to synthesize (max 3,000 chars) |
voice | string | Yes | A Google Cloud voice ID from GET /api/v1/tts/voices |
ttsModel | string | Yes | Must be "google-wavenet" |
speed | number | No | Speaking rate 0.25–4.0 · Default: 1.0 |
pitch | number | No | Pitch 0.0–1.0 (maps to −20…+20 semitones; 0.5 = neutral) · Default: 0.5 |
title | string | No | Title for the saved project |
{
"text": "Terima kasih telah menggunakan layanan kami.",
"voice": "voice-uuid-wavenet-id",
"ttsModel": "google-wavenet",
"speed": 1.1
}Response (200 OK)
{
"url": "https://cdn.sonnalabs.app/sonna/api-ephemeral/tts/free/user123/stu901.mp3",
"remainingCredits": 9750,
"projectCreated": true
}Errors (400 TEXT_TOO_LONG — 3,000, or 1,000 on Free — plus 402, 409, 429, 503) follow the shared Speech API table. No 403: Google voices are available to everyone.