AudioEncoding
Audio encoding schemes supported by the SDK.
type AudioEncoding = "linear16" | "opus" | "mp3" | "mulaw" | "alaw";
Defined in: src/core/types/audio.ts:50
Audio encoding schemes supported by the SDK.
Remarks
Describes the sample encoding of raw audio data. This is primarily used in AudioMetadata to communicate the encoding of audio chunks between TTS providers and the audio player.
'linear16'- 16-bit signed integer PCM (most common for speech)'opus'- Opus-encoded audio'mp3'- MP3-encoded audio'mulaw'- mu-law companding (telephony standard, North America/Japan)'alaw'- A-law companding (telephony standard, Europe/international)
See
- AudioMetadata for where this type is used
- AudioFormat for the related container format type