Voice cloning

pocket-tts-clone

Clone from one reference clip, then speak new text.

Native waveform: Reference converted to 24 kHz mono. Generate 24 kHz mono.. Live price and availability are on GET /v1/models/pocket-tts-clone.

  • reference_text is ignored and should be omitted.
  • params.voice is rejected. The uploaded clip is the speaker.

Parameters

FieldTypeDescription
params.output_format
Default wav (flac for stems)
stringwav, flac, mp3, or model (the model native file).
params.output_sample_rate
Default source
string or integersource keeps the upload (or the model rate when there is no upload). model uses the model native rate. Or pass 8000, 16000, 22050, 24000, 32000, 44100, or 48000.
params.output_channels
Default source
stringsource, model, mono, or stereo. Applied after inference, not before.

Example

curl https://api.pascalai.co/v1/voice-cloning \
  -H "Authorization: Bearer $PASCAL_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -F model=pocket-tts-clone \
  -F text="Keep walking toward the river." \
  -F params='{"output_format":"wav","output_sample_rate":"source","output_channels":"source"}' \
  -F file=@voice.wav

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