Google & Gemini

Gemini Voice Cloning

Replicate any reference voice with zero-shot accuracy using Gemini 3.8 Flash.

Submit reference audio and speech scripts to POST /v1/voice-cloning with model gemini-3.8-flash-clone. Pascal handles neural voice extraction, embedding, and streaming waveform synthesis.

Parameters

FieldTypeDescription
modelRequiredstringModel identifier: gemini-3.8-flash-clone.
fileRequiredfile (multipart)Reference audio clip of the target voice (WAV, MP3, FLAC, M4A). Minimum 3 seconds recommended.
textRequiredstringThe text script to synthesize in the cloned voice.
reference_textstringOptional transcript of the reference clip to improve acoustic-phonetic alignment.
params.language
Default auto
stringSpoken language code (e.g. en, es, fr, de, hi, ja, ko, pt, zh).
params.speed
Default 1.0
numberSpeaking rate multiplier between 0.5 and 2.0.

Code example

curl https://api.pascalai.co/v1/voice-cloning \
  -H "Authorization: Bearer $PASCAL_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -F model=gemini-3.8-flash-clone \
  -F params='{"language":"en","speed":1}' \
  -F file=@speaker_reference.wav

curl https://api.pascalai.co/v1/voice-cloning/$JOB_ID \
  -H "Authorization: Bearer $PASCAL_API_KEY"

Models