Skip to content

GoogleSTTEncoding

Supported Google Cloud STT (v1) audio encodings.

type GoogleSTTEncoding = 
  | "LINEAR16"
  | "FLAC"
  | "MULAW"
  | "ALAW"
  | "AMR"
  | "AMR_WB"
  | "OGG_OPUS"
  | "WEBM_OPUS"
  | "MP3"
  | "SPEEX_WITH_HEADER_BYTE";

Defined in: src/providers/stt/google/GoogleSTT.ts:48

Supported Google Cloud STT (v1) audio encodings.

Remarks

  • 'LINEAR16' — Uncompressed 16-bit signed little-endian PCM (or WAV)
  • 'FLAC' — Free Lossless Audio Codec; recommended for lossless upload
  • 'MULAW' — G.711 mu-law, 8-bit companded PCM
  • 'AMR' / 'AMR_WB' — Adaptive Multi-Rate (narrowband/wideband)
  • 'OGG_OPUS' — Opus frames in an Ogg container
  • 'WEBM_OPUS' — Opus frames in a WebM container (what MediaRecorder produces in most browsers)
  • 'MP3' — MPEG audio layer 3
  • 'ALAW' — G.711 A-law, 8-bit companded PCM
  • 'SPEEX_WITH_HEADER_BYTE' — Speex wideband with header byte

For WAV and FLAC files the encoding and sample rate are read from the file header, so they may be omitted from the configuration.

© 2026 CompositeVoice. All rights reserved.

Font size
Contrast
Motion
Transparency