Skip to main content

AudioEncoderInfo

Electron APIs / recorder / AudioEncoderInfo

Supported audio encoder information.

Extends the base encoder information with a specific encoder type identifier. Useful for populating encoder selection menus or configuring audio output.

Example

const audioEncoder: AudioEncoderInfo = {
codec: "aac",
name: "FFmpeg AAC Encoder",
type: "ffmpeg_aac",
properties: {
bitrate: { default: 128, description: "Bitrate" },
},
};

Extends

Properties

PropertyModifierTypeDescription
codecreadonlystringThe codec identifier (e.g., h264, aac, av1) supported by the encoder.
namereadonlystringA human-readable name for the encoder (e.g., shown in UI).
properties?readonlyRecord<string, EncoderProperty>Optional map of encoder-specific configuration properties, keyed by setting name (e.g. bitrate, rate_control). Each property describes a setting that can be adjusted for this encoder. Reported for both video and audio encoders. See EncoderProperty
typereadonlystringThe identifier for the specific audio encoder type. See kKnownAudioEncodersTypes