Text to speech

google-chirp-hd

Google Studio & Chirp HD neural voices across 50+ languages with speed and pitch control.

Native waveform: 24 kHz 16-bit PCM WAV / MP3.. Live price and availability are on GET /v1/models/google-chirp-hd.

  • Studio voices provide broadcast-quality clarity with fine-grained pitch adjustment.

Parameters

FieldTypeDescription
params.voice
Default en-US-Studio-O
stringStudio voice code (e.g. en-US-Studio-O, en-GB-Studio-B, fr-FR-Studio-A).
params.speed
Default 1.0
numberSpeaking rate multiplier from 0.25 to 4.0.
params.pitch
Default 0.0
numberPitch adjustment in semitones (-20.0 to +20.0).
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/text-to-speech \
  -H "Authorization: Bearer $PASCAL_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
  "model": "google-chirp-hd",
  "text": "Keep walking toward the river.",
  "params": {
    "voice": "en-US-Studio-O",
    "speed": 1,
    "output_format": "wav",
    "output_sample_rate": "source",
    "output_channels": "source"
  }
}'

curl https://api.pascalai.co/v1/text-to-speech/$JOB_ID \
  -H "Authorization: Bearer $PASCAL_API_KEY"