The Patchbay_

AudioGen

Meta’s text-to-sound model for environmental audio and sound effects, shipped inside AudioCraft.

LanguagePython
CategoryML & generative
LicenseMIT (code) · CC-BY-NC-4.0 (weights)
PlatformsLinux Windows macOS
Installpip install audiocraft
First released2023
MaintainedLimited
LinksDocs · Source · Model

Strengths

Limitations

Best for

Generating individual sound effects — a dog barking, footsteps, a siren — when licensing permits non-commercial use.

Minimal example

from audiocraft.models import AudioGen
from audiocraft.data.audio import audio_write

model = AudioGen.get_pretrained('facebook/audiogen-medium')
model.set_generation_params(duration=5)

descriptions = ['dog barking', 'siren of an emergency vehicle',
                'footsteps in a corridor']
wav = model.generate(descriptions)

for i, one in enumerate(wav):
    audio_write(f'sfx_{i}', one.cpu(), model.sample_rate, strategy='loudness')
For commercial sound design, Stable Audio Open is the better choice — it is stronger on sound effects, outputs 44.1 kHz stereo, and its licence permits commercial use below a revenue threshold. See the licensing matrix.

Related tools

AudioCraft (MusicGen)Stable Audio OpenMAGNeTAudioLDM 2

Head to head

AudioGen vs Stable Audio Open

← Back to all tools