Skip to content

GoogleTTSAudioEncoding

Supported Google Cloud TTS audio encodings.

type GoogleTTSAudioEncoding = "MP3" | "OGG_OPUS" | "LINEAR16" | "MULAW" | "ALAW";

Defined in: src/providers/tts/google/GoogleTTS.ts:35

Supported Google Cloud TTS audio encodings.

Remarks

The encoding affects both file size and audio quality.

  • 'MP3' — 32 kbps MP3, good compression, widely supported (default)
  • 'OGG_OPUS' — Opus in an Ogg container, good compression, open format
  • 'LINEAR16' — Uncompressed 16-bit signed PCM with a WAV header, highest quality
  • 'MULAW' — G.711 mu-law with a WAV header, telephony use cases
  • 'ALAW' — G.711 A-law with a WAV header, telephony use cases

© 2026 CompositeVoice. All rights reserved.

Font size
Contrast
Motion
Transparency