Speech to text

pascal-transcribe

Speech-to-text. $0.18 per audio hour, or $0.20 per audio hour with speaker diarization, plus the $0.05 request fee.

Native waveform: Accepts common audio containers. Language auto or a Whisper code.. Live price and availability are on GET /v1/models/pascal-transcribe.

  • The result is text. When timestamp_granularity is segment, segments contain start, end, and text. speaker is included on each segment only when speaker_diarization is true.
  • The result does not include language, duration, or an utterance id.
  • The field name is speaker_diarization. diarize is rejected.
  • emotion, accent, deepfake, and PII fields are rejected.
  • Hosted model. The studio signup credit can spend it.
  • The file must be under 80 MB.

Parameters

FieldTypeDescription
params.language
Default auto
stringISO 639-1 code. auto detects the language. ['af', 'am', 'ar', 'as', 'az', 'ba', 'be', 'bg', 'bn', 'bo', 'br', 'bs', 'ca', 'cs', 'cy', 'da', 'de', 'el', 'en', 'es', 'et', 'eu', 'fa', 'fi', 'fo', 'fr', 'gl', 'gu', 'ha', 'haw', 'he', 'hi', 'hr', 'ht', 'hu', 'hy', 'id', 'is', 'it', 'ja', 'jw', 'ka', 'kk', 'km', 'kn', 'ko', 'la', 'lb', 'ln', 'lo', 'lt', 'lv', 'mg', 'mi', 'mk', 'ml', 'mn', 'mr', 'ms', 'mt', 'my', 'ne', 'nl', 'nn', 'no', 'oc', 'pa', 'pl', 'ps', 'pt', 'ro', 'ru', 'sa', 'sd', 'si', 'sk', 'sl', 'sn', 'so', 'sq', 'sr', 'su', 'sv', 'sw', 'ta', 'te', 'tg', 'th', 'tk', 'tl', 'tr', 'tt', 'uk', 'ur', 'uz', 'vi', 'yi', 'yo', 'yue', 'zh']
params.speaker_diarization
Default false
booleanLabel each segment with a speaker number. When true, the audio is billed at $0.20 per hour.
params.custom_termsstring or arrayNames and jargon to bias the transcript. A comma-separated string or a list of strings. At most 1000 terms and 8000 characters.
params.timestamp_granularity
Default none
stringnone returns text only. segment also returns segments, each with start, end, and text, in seconds.

Example

curl https://api.pascalai.co/v1/speech-to-text \
  -H "Authorization: Bearer $PASCAL_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -F model=pascal-transcribe \
  -F params='{"language":"auto","speaker_diarization":false,"custom_terms":"Pascal, Saarika","timestamp_granularity":"none"}' \
  -F file=@input.wav

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