audiomix

command
v0.6.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 16, 2026 License: MIT Imports: 12 Imported by: 0

Documentation

Overview

Command audiomix demonstrates editing audio with AVAudioMix.

It loads an audio or video file, applies volume ramp effects using AVMutableAudioMix, and either previews the result with AVPlayer or exports a new file with the mix baked in via AVAssetReader/Writer.

This example is a Go port of Apple's "Editing Spatial Audio with an Audio Mix" sample, adapted to use the general-purpose AVAudioMix APIs available through the avfoundation bindings.

Usage:

audiomix preview [--duration <seconds>] <file>
audiomix bake [--fade-in <seconds>] [--fade-out <seconds>] --output <outfile> <file>

Examples:

audiomix preview --duration 10 recording.mov
audiomix bake --fade-in 2 --fade-out 3 --output mixed.mov recording.mov

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL