LiveFoley

Dynamic Real-Time Video-to-Audio Generation for Immersive Interactive Worlds

arXiv 2611.05988 · Project page · Code (GitHub)

LiveFoley generates 48 kHz stereo sound for a video while it plays: each 80 ms of audio is produced from the frames seen so far, optionally steered by a text caption that can be changed on the fly. One model serves three video hops (0.08 / 0.16 / 0.32 s). Clips and streaming sessions are limited to 9.92 s (the training window); longer inputs are truncated.

Files

Dalision/livefoley
├── config.json              # rebuilds all four networks (also used by the code)
├── livefoley.safetensors    # 5.0 GiB (5.4 GB), all inference weights in one file
└── tokenizer/               # flan-t5-base tokenizer
    ├── spiece.model
    ├── tokenizer.json
    ├── tokenizer_config.json
    └── special_tokens_map.json

What is packed in livefoley.safetensors

key prefix network dtype params size
model. LiveFoley generator: autoregressive LM (28 layers, 2048-d, per-layer text cross-attention) + local encoder + history-only local diffusion transformer + video reducer bf16 2114.8 M 3.94 GiB
vae. decoder of the fully causal 48 kHz stereo audio VAE (50 Hz, 64-d latents) + latent statistics fp32 108.6 M 0.40 GiB
synchformer. Synchformer visual tower (MotionFormer, divided space-time attention, 16 frames × 224²), fine-tuned on VGGSound fp32 (runs under bf16 autocast) 121.9 M 0.45 GiB
t5. encoder of google/flan-t5-base, unmodified bf16 109.6 M 0.20 GiB

Only what inference needs is included: no optimizer state, no VAE encoder, no Synchformer audio branch, no T5 decoder. Each part is stored in the precision it runs in: the weights are bit-identical to the evaluated checkpoint, and with the same video features and seed the code reproduces our evaluation pipeline bit for bit (eager mode; compiled mode additionally needs the same Triton version). Individual samples are not bit-reproducible end to end (per-clip seeding differs from the paper run, and the online video front-end differs by ~0.2 % from the cached evaluation features).

Usage

git clone https://github.com/dalision/livefoley && cd livefoley
PYTHONNOUSERSITE=1 conda env create -f environment.yml && conda env create -f environment-ffmpeg.yml && conda activate livefoley
python scripts/check_env.py          # must print RESULT: PASS (Triton is required for real-time speed)
hf download Dalision/livefoley --local-dir weights/livefoley
python inference.py --input clip.mp4 --caption "a dog barks twice" --output out/

Triton is required (triton==3.6.0, the version torch 2.11.0 installs; pinned in the environment files). At start-up the code compiles and launches each custom kernel and a tiny torch.compile graph once and stops with an explicit error and fix if that fails. --no_triton runs without it: outputs are still correct but ~5x slower (measured RTF 3.3-3.6 vs 0.65 at hop 0.08 s on an A800) and not real time.

The environment sets PYTHONNOUSERSITE=1 on activation (packages in ~/.local would otherwise shadow the pinned ones); re-activate it after creating it, or run conda env config vars set PYTHONNOUSERSITE=1 -n livefoley for an environment created earlier.

Offline inference, the streaming API, the latency benchmark and the evaluation recipe are documented in the GitHub README.

Results

VGGSound test set (15,234 clips, the same test set used by Omni2Sound / SoundAtlas), 8 s window, av-benchmark, CFG 6, 20 Euler steps, k_inf 0.15. "w/" rows use one Gemini caption per clip (not released).

hop text FD_PANNs↓ FD_PaSST↓ FD_VGG↓ KL_PANNs↓ IS↑ PQ↑ DeSync↓ IB↑
0.08 s w/o 9.53 125.50 1.89 2.44 11.00 6.45 0.490 0.284
0.16 s w/o 9.30 124.50 1.83 2.41 11.16 6.45 0.473 0.286
0.32 s w/o 9.27 124.51 1.78 2.41 11.22 6.42 0.453 0.285
0.08 s w/ 6.66 123.62 1.81 1.56 11.63 6.41 0.513 0.295
0.16 s w/ 6.62 122.95 1.75 1.57 11.65 6.41 0.496 0.296
0.32 s w/ 6.47 123.13 1.67 1.57 11.69 6.40 0.479 0.296

Latency

Single stream, one NVIDIA A800 80GB, three 9.92 s VGGSound test clips, CFG 6, 20 steps, Triton 3.6.0 "fast" kernels + torch.compile (CUDA graphs). TTFF = first playable 80 ms chunk after the first video frame with frames paced at 25 fps; RTF = serial compute / audio duration, front end included.

hop TTFF (w/o text) TTFF (w/ text) RTF (w/o text) RTF (w/ text)
0.08 s 162 ms 159 ms 0.653 0.652
0.16 s 239 ms 240 ms 0.562 0.563
0.32 s 397 ms 398 ms 0.517 0.517

License

The LiveFoley weights (model., vae., synchformer.) are released under CC BY-NC 4.0 for non-commercial research use. Bundled third-party components keep their own terms:

  • Synchformer visual tower — fine-tuned from Synchformer; distributed under CC BY-NC 4.0.
  • flan-t5-base encoder and tokenizer — google/flan-t5-base, Apache-2.0.

Citation

@article{dai2026livefoley,
  title   = {LiveFoley: Dynamic Real-Time Video-to-Audio Generation for Immersive Interactive Worlds},
  author  = {Dai, Yusheng and Iashin, Vladimir and Wang, Kangdi and Jiang, Yuxuan and Viertola, Ilpo and
             Wang, Weiqiang and Ke, Qiuhong and Zhao, Min and Cai, Jianfei},
  journal = {arXiv preprint arXiv:2611.05988},
  year    = {2026}
}
Downloads last month
42
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Paper for Dalision/livefoley