I am trying to register a replicated voice using the documented Gemini Developer API Voices endpoint. On September 24, 2026, registration failed with both direct REST and the official Python SDK.
Endpoint: POST https://generativelanguage.googleapis.com/v1beta/voices
Model: gemini-3.8-flash-tts
Voice type: replicated
Storage: store=true
SDK comparison: google-genai 2.25.0, Python 3.14, httpx 0.28.1 on macOS.
The response is HTTP 500, status INTERNAL, message: “Error translating server response to JSON”.
The in-range reference WAV is 29.8 seconds, 24 kHz, mono, PCM 16-bit. It combines excerpts from two recordings of the same speaker with a short silence between them. The separate consent WAV is about 11.97 seconds, also 24 kHz mono PCM 16-bit, with that speaker reading the documented Japanese consent statement. Both are sent as base64 data with mime_type audio/wav.
Request structure (audio omitted):
{
"store": true,
"voice": {
"model": "gemini-3.8-flash-tts",
"type": "replicated",
"display_name": "Voice replication test",
"replicated": {
"source_audio": {"mime_type": "audio/wav", "data": "<BASE64_REFERENCE>"},
"consent_audio": {"mime_type": "audio/wav", "data": "<BASE64_CONSENT>"}
}
}
}
The display name above is anonymized. Offline comparison confirmed that SDK serialization matched the direct REST request body for our test, including the audio bytes.
With the same 29.8-second input, direct REST returned the error after about 10.52 seconds, and the SDK after about 6.64 seconds. Each test issued only one POST; automatic retries were disabled and an independent transport guard prevented duplicate POSTs.
GET /v1beta/voices?type=replicated returned HTTP 200 with zero voices and no next page before and after these attempts. No voice ID was obtained and no subsequent speech synthesis was attempted. This does not establish that consent verification or create permissions succeeded.
An earlier reference was 55.4 seconds (outside the documented 10–30 second range) and failed too; the observations above use the corrected 29.8-second reference.
Could the team help clarify:
- Is this a known CreateVoice / voice replication error?
- Are there additional eligibility or input constraints not described in the guide, including concatenated recordings or Japanese consent?
- How can we distinguish reference/consent validation failure from a backend response-serialization failure?
- Which request identifiers or non-sensitive diagnostics would help, and is there a private support channel if audio is needed?
For privacy, this public report contains no audio, API keys or account/project identifiers. I have not established the root cause and am not assuming this is a general outage.