Skip to content

RimeTTSFormat

Supported Rime TTS audio output formats.

type RimeTTSFormat = "mp3" | "wav" | "ogg" | "webm" | "pcm" | "mulaw";

Defined in: src/providers/tts/rime/RimeTTS.ts:50

Supported Rime TTS audio output formats.

Remarks

The format is selected via the request’s Accept header and affects both file size and audio quality.

  • mp3 — Good compression, widely supported (default)
  • wav — Uncompressed 16-bit PCM with RIFF header
  • ogg — Opus in an OGG container, good compression
  • webm — Opus in a WebM container, native browser streaming
  • pcm — Headerless 16-bit linear PCM (audio/L16)
  • mulaw — Headerless G.711 mu-law (audio/PCMU), common in telephony

© 2026 CompositeVoice. All rights reserved.

Font size
Contrast
Motion
Transparency