Conditional Generation of Audio from Video via Foley Analogies

Yuexi Du, Ziyang Chen, Justin Salamon, Bryan Russell, Andrew Owens · DOI

Abstract

The sound effects that designers add to videos are designed to convey a particular artistic effect and, thus, may be quite different from a scene's true sound. Inspired by the challenges of creating a soundtrack for a video that differs from its true sound, but that nonetheless matches the actions occurring on screen, we propose the problem of conditional Foley. We present the following contributions to address this problem. First, we propose a pretext task for training our model to predict sound for an input video clip using a conditional audio-visual clip sampled from another time within the same source video. Second, we propose a model for generating a soundtrack for a silent input video, given a user-supplied example that specifies what the video should “sound like”. We show through human studies and automated evaluation metrics that our model successfully generates sound from videos, while varying its output according to the content of a supplied example.

Introduction

In professional film production, the art of "Foley" involves creating sound effects that enhance the artistic impact of a scene. These sounds are often not the original recordings; for example, a Foley artist might use the sound of sizzling bacon to represent rain. Current AI models can often predict the most likely sound for a video, but they lack the artistic control required to specify a particular material or timbre for a given action. This paper introduces Conditional Foley, a framework that allows creators to generate sound for a silent video by providing a reference "analogy" example. The core challenge is disentangling the timing of visual actions from the timbre of the desired sound source.

Methods

The proposed system uses a "Foley Analogy" approach ($Video A : Sound A :: Video B : Sound B$). To train the model without manually labeled stylized data, the authors developed a self-supervised pretext task. The model is trained on pairs of clips from the same long video, using one as a conditional example to provide the timbre and the other to provide the timing for audio prediction.

A drumstick striking a surface, an example of the discrete impact events the model is designed to synchronize.

The architecture utilizes a VQGAN to compress mel spectrograms into discrete audio codes and a ResNet (2+1)D model for video feature extraction. A Transformer (GPT-2 style) then predicts the audio codes autoregressively. At inference time, an audio-visual re-ranking step is employed to select the candidate soundtrack that best aligns with the visual onsets of the input video.

Datasets and Evaluation

The model was evaluated on two primary datasets:

  1. Greatest Hits: A controlled dataset of drumsticks striking various materials (plastic, wood, metal), used to test material-switching capabilities.
  2. CountixAV: A diverse dataset of 23 categories of repetitive actions from YouTube, such as bouncing balls or typing.
A hand typing on a keyboard, illustrating the more complex repetitive actions found in the CountixAV dataset.

On the Greatest Hits dataset, the model achieved 44% material accuracy and 66.7% action accuracy. Human perceptual studies via Amazon Mechanical Turk showed that users preferred the proposed model's results over style-transfer baselines, particularly noting the effectiveness of the re-ranking step for temporal synchronization.

Discussion and Conclusion

Conditional Foley provides a natural interface for human-AI collaboration in sound design, successfully demonstrating "cross-material" generation—such as making a cardboard box hit sound like a metal trash can. However, the model currently struggles with continuous textures (like wind) and complex scenes with overlapping sources. The authors also note the potential ethical implications regarding the creation of deepfakes, emphasizing the need for concurrent development in audio-visual forensics.

Summary updated

BibTeX
@misc{du2023conditional,
  author = {Yuexi Du and Ziyang Chen and Justin Salamon and Bryan Russell and Andrew Owens},
  title = {{Conditional Generation of Audio from Video via Foley Analogies}},
  year = {2023},
  eprint = {2304.08490},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2304.08490},
}
Figure