Skip to content

SFX Runtime

This page covers the native sound-effect runtime exposed through mere.run sfx.

Public surface

  • mere.run sfx generate
  • mere.run sfx ae encode
  • mere.run sfx ae decode
  • mere.run sfx clap score
  • mere.run sfx condition text
  • mere.run sfx video generate

Model family

  • sfx-woosh-dflow
  • sfx-woosh-flow
  • sfx-woosh-clap
  • sfx-woosh-synchformer
  • sfx-woosh-dvflow-8s
  • sfx-woosh-vflow-8s
  • sfx-mmaudio-large-44k-v2

Guides

bash
mere.run guide sfx generate --model sfx-woosh-dflow

Typical workflow

bash
swift run mere.run model pull sfx-woosh-dflow --accept-model-license
swift run mere.run sfx generate \
  "metal wrench dropping onto concrete, bright clang and brief ring" \
  --model sfx-woosh-dflow \
  --duration 5 \
  --steps 4 \
  --cfg 4.5 \
  --output ./wrench-clang.wav
bash
swift run mere.run model pull sfx-woosh-flow --accept-model-license
swift run mere.run sfx generate \
  "dry branch snapping under a boot" \
  --model sfx-woosh-flow \
  --duration 1 \
  --steps 2 \
  --output ./branch-snap.wav
bash
swift run mere.run sfx generate \
  "ceramic mug shattering on a tile floor, sharp cracks and scattered debris" \
  --seed 1234 \
  --renoise 0,0.5,0.5,0.3 \
  --output ./ceramic-shatter.wav
bash
swift run mere.run sfx ae encode ./branch-snap.wav -o ./branch-snap-latents.npy
swift run mere.run sfx ae decode ./branch-snap-latents.npy -o ./branch-snap-roundtrip.wav
bash
swift run mere.run sfx condition text \
  "ceramic mug shattering on a tile floor" \
  -o ./ceramic-condition.safetensors
bash
swift run mere.run model pull sfx-woosh-clap --accept-model-license
swift run mere.run sfx clap score \
  "ceramic mug shattering on a tile floor" \
  ./ceramic-shatter.wav
bash
swift run mere.run model pull sfx-woosh-dvflow-8s --accept-model-license
swift run mere.run model pull sfx-woosh-synchformer --accept-model-license
swift run mere.run sfx video generate \
  "footsteps echoing down a concrete hallway" \
  ./silent-hallway.mp4 \
  --model sfx-woosh-dvflow-8s \
  --duration 8 \
  -o ./hallway-footsteps.wav

MMAudio provides a second, native 44.1 kHz path for both text-to-audio and video-to-audio generation:

bash
swift run mere.run model pull sfx-mmaudio-large-44k-v2 --accept-model-license
swift run mere.run sfx generate \
  "ocean waves striking a stone breakwater, close and detailed" \
  --negative-prompt "speech, music" \
  --model sfx-mmaudio-large-44k-v2 \
  --duration 8 \
  --steps 25 \
  --output ./breakwater.wav

swift run mere.run sfx video generate \
  "a skateboard rolling over rough pavement" \
  ./skateboard.mp4 \
  --negative-prompt "speech, music" \
  --model sfx-mmaudio-large-44k-v2 \
  --clip-batch-size 4 \
  --sync-batch-size 1 \
  --output ./skateboard.wav

MMAudio video generation needs the original video because it conditions on both DFN5B CLIP frames and Synchformer features. A Synchformer-only .npy input cannot supply the CLIP stream. The model produces 44.1 kHz audio and defaults to 8 seconds, 25 Euler flow steps, and CFG 4.5.

Runtime entrypoints

CLI

  • Sources/MereRunCLI/Commands/SFXCommand.swift
  • Sources/MereRunCLI/Commands/SFXAECommand.swift
  • Sources/MereRunCLI/Commands/SFXCLAPCommand.swift
  • Sources/MereRunCLI/Commands/SFXConditionCommand.swift
  • Sources/MereRunCLI/Commands/SFXGenerateCommand.swift
  • Sources/MereRunCLI/Commands/SFXVideoCommand.swift

Runtime

  • Sources/MereRunCore/Woosh/WooshGenerator.swift
  • Sources/MereRunCore/Woosh/WooshDiT.swift
  • Sources/MereRunCore/Woosh/WooshVideoDiT.swift
  • Sources/MereRunCore/Woosh/WooshCLAP.swift
  • Sources/MereRunCore/Woosh/WooshSynchformer.swift
  • Sources/MereRunCore/Woosh/WooshRobertaTextEncoder.swift
  • Sources/MereRunCore/Woosh/WooshVocosDecoder.swift
  • Sources/MereRunCore/Woosh/WooshResources.swift
  • Sources/MereRunCore/MMAudio/MMAudioGenerator.swift
  • Sources/MereRunCore/MMAudio/MMAudioNetwork.swift
  • Sources/MereRunCore/MMAudio/MMAudioCLIP.swift
  • Sources/MereRunCore/MMAudio/MMAudioVAE.swift
  • Sources/MereRunCore/MMAudio/MMAudioBigVGAN.swift

Reading order

  1. WooshResources.swift for model IDs, validation, and checkpoint layout
  2. WooshGenerator.swift for prompt/video conditioning, Flow/DFlow/VFlow/DVFlow sampling, and WAV-ready samples
  3. WooshRobertaTextEncoder.swift for TextConditionerA / RoBERTa conditioning
  4. WooshDiT.swift for the native Flow and FlowMap DiTs
  5. WooshVideoDiT.swift for VFlow/DVFlow video-feature-conditioned DiTs
  6. WooshSynchformer.swift for raw-video frame preprocessing and Synchformer synch_out extraction
  7. WooshCLAP.swift for Woosh-CLAP text/audio scoring
  8. WooshVocosDecoder.swift for Woosh-AE encode/decode

Contributor notes

  • Woosh is a sound-effect and Foley model, not a song model; keep it under sfx, not music.
  • The managed install uses the Hugging Face mirror AEmotionStudio/woosh-models, which mirrors Sony Research Woosh v1.0.0.
  • The native text-to-SFX public surface supports both Woosh-DFlow and Woosh-Flow. Woosh-DFlow is the fast default; Woosh-Flow is the original model and needs more steps for quality.
  • TextConditionerA/TextConditionerV are exported Woosh-CLAP text-conditioning components. sfx condition text exposes the text-token conditioning tensors, and sfx clap score runs the native RoBERTa + PaSST retrieval path.
  • sfx video generate runs native VFlow/DVFlow from a raw video file. It can also take precomputed Synchformer synch_out tensors as .npy with shape [frames, 768] or [1, frames, 768].
  • The open weights are CC-BY-NC 4.0. Generated outputs inherit the non-commercial restriction described by the mirror and upstream release.
  • The MMAudio architecture source is MIT, while the released MMAudio checkpoints are separately licensed CC-BY-NC 4.0. The managed catalog and model-source documentation preserve that non-commercial checkpoint boundary.
  • MMAudio's mounted Apple DFN5B CLIP conditioner is separately research-only under the Apple Machine Learning Research Model License Agreement. The managed model keeps Apple's exact license file under clip/LICENSE.

Released under the MIT License.