Abstract: Audio signals are sampled at high temporal resolutions, and learning to synthesize audio requires capturing structure across a range of timescales. Generative adversarial networks (GANs) have seen wide success at generating images that are both locally and globally coherent, but they have seen little application to audio generation. In this paper we introduce WaveGAN, a first attempt at applying GANs to unsupervised synthesis of raw-waveform audio. WaveGAN is capable of synthesizing one second slices of audio waveforms with global coherence, suitable for sound effect generation. Our experiments demonstrate that, without labels, WaveGAN learns to produce intelligible words when trained on a small-vocabulary speech dataset, and can also synthesize audio from other domains such as drums, bird vocalizations, and piano. We compare WaveGAN to a method which applies GANs designed for image generation on image-like audio feature representations, finding both approaches to be promising.
Introduction
Synthesizing high-quality audio presents a significant challenge due to the extreme temporal resolution required—often 16,000 samples per second or more. A successful model must maintain coherence across multiple scales, from micro-level oscillations to macro-level structures like words or musical phrases. While autoregressive models like WaveNet produce high-quality results, their sequential nature makes them computationally expensive and slow for real-time applications. Conversely, spectrogram-based methods often suffer from artifacts during the inversion process.
Methodology
This research explores the application of Generative Adversarial Networks (GANs) to audio synthesis through two distinct paradigms: WaveGAN and SpecGAN.
WaveGAN
WaveGAN adapts the DCGAN architecture, typically used for 2D images, to 1D audio signals. The model "flattens" 2D convolutions into 1D, utilizing longer filter lengths (25) and larger strides (4). This design ensures a sufficiently wide receptive field to capture the periodicities inherent in audio.
SpecGAN
As a baseline, SpecGAN treats audio as an image by operating on log-magnitude spectrograms. It uses standard 2D convolutions and relies on the Griffin-Lim algorithm to invert the generated spectrograms back into time-domain audio.
Phase Shuffle
A critical innovation introduced is Phase Shuffle. In image-based GANs, upsampling often results in "checkerboard" artifacts. In audio, these manifest as high-pitched periodic noise. Because these artifacts occur at fixed phases, a discriminator can easily learn to identify them, hindering the generator's progress. Phase Shuffle randomly shifts the phase of the discriminator's feature maps, forcing it to focus on content-aware features rather than periodic artifacts.
Key Insights
A fundamental finding is that WaveGAN's filters naturally learn to decompose audio into frequency bands, effectively performing a learned Fourier-like transform. This suggests that the model internalizes the periodic nature of sound without explicit supervision.
Furthermore, WaveGAN offers a massive speed advantage. Being non-autoregressive, it can generate an hour of audio in less than two seconds on a standard GPU, making it orders of magnitude faster than sequential models.
Results and Evaluation
The models were tested on diverse datasets, including spoken digits (SC09), drum sounds, bird vocalizations, and piano compositions.
- Unsupervised Intelligibility: On the SC09 dataset, WaveGAN learned to generate spoken digits without any labels. Human listeners correctly identified these synthetic digits with 58% accuracy.
- Human Preference: Qualitative studies showed that human judges consistently preferred WaveGAN over SpecGAN, citing better sound quality and greater speaker diversity.
- Biological Relevance: In an informal "Feline Turing Test," synthetic bird vocalizations successfully captured the attention of cats, indicating the presence of biologically realistic features.
Conclusion
WaveGAN demonstrates that GANs can effectively synthesize raw waveforms with global coherence. While currently limited to one-second clips, this work paves the way for fast, parallel audio generation in complex domains. Future research will focus on extending sequence lengths and improving long-term structural coherence in music and speech.
Summary updated