kKnownAudioEncodersTypes
Electron APIs / recorder / kKnownAudioEncodersTypes
type kKnownAudioEncodersTypes =
| "ffmpeg_aac"
| "ffmpeg_opus"
| "ffmpeg_pcm_s16le"
| "ffmpeg_pcm_s24le"
| "ffmpeg_pcm_f32le"
| "ffmpeg_alac"
| "ffmpeg_flac"
| string;
List of audio encoder types available via FFmpeg.
Typically used for exporting or streaming audio content in different formats. Each variant maps to a specific FFmpeg audio codec.
| Value | Description |
|---|---|
'ffmpeg_aac' | AAC (Advanced Audio Coding) encoder using FFmpeg. Widely supported across platforms; good balance of quality and compression. |
'ffmpeg_opus' | Opus encoder using FFmpeg. High-efficiency codec commonly used for voice and streaming (e.g., Discord, WebRTC). |
'ffmpeg_pcm_s16le' | PCM (Pulse-code Modulation) 16-bit signed little-endian. Uncompressed audio with moderate file size; excellent compatibility. |
'ffmpeg_pcm_s24le' | PCM 24-bit signed little-endian. Higher-resolution uncompressed audio format, often used in professional audio applications. |
'ffmpeg_pcm_f32le' | PCM 32-bit floating-point little-endian. Offers high dynamic range; used for precision in audio processing workflows. |
'ffmpeg_alac' | Apple Lossless Audio Codec (ALAC) encoder via FFmpeg. Provides lossless compression; typically used in the Apple ecosystem. |
'ffmpeg_flac' | FLAC (Free Lossless Audio Codec) encoder via FFmpeg. Popular open-source lossless format with good compression and widespread support. |
string | Custom or unknown encoder type represented as a string. |
Remarks
If a custom encoder is used that is not in this predefined list, it can be specified as a string.
Example
const audioEncoder: kKnownAudioEncodersTypes = "ffmpeg_opus";