Skip to content

ElevenLabsOutputFormat

ElevenLabs output format identifiers.

type ElevenLabsOutputFormat = 
  | "pcm_16000"
  | "pcm_22050"
  | "pcm_24000"
  | "pcm_44100"
  | "mp3_44100_128"
  | "ulaw_8000"
  | string & {
};

Defined in: src/providers/tts/elevenlabs/ElevenLabsTTS.ts:57

ElevenLabs output format identifiers.

Remarks

The format string encodes both the encoding type and sample rate:

  • pcm_16000 — 16-bit PCM at 16 kHz
  • pcm_22050 — 16-bit PCM at 22.05 kHz
  • pcm_24000 — 16-bit PCM at 24 kHz
  • pcm_44100 — 16-bit PCM at 44.1 kHz
  • mp3_44100_128 — MP3 at 44.1 kHz, 128 kbps
  • ulaw_8000 — mu-law at 8 kHz (telephony)

Custom format strings are also accepted via the string & {} type widening.

© 2026 CompositeVoice. All rights reserved.

Font size
Contrast
Motion
Transparency