STFTCodec: High-Fidelity Audio Compression through Time-Frequency Domain Representation
Tao Feng, Zhiyuan Zhao, Yifan Xie, Yuqi Ye, Xiangyang Luo, Xun Guan, Yu Li
TL;DR
STFTCodec addresses the inefficiency of waveform-based neural audio codecs by operating in the time-frequency domain via STFT. It introduces unwrapped phase derivatives as auxiliary features and a dual-branch magnitude/phase encoder with residual vector quantization, training with GAN-based perceptual losses and multi-scale mel-spectrogram objectives. By relaxing strict spectral reconstruction constraints and focusing on perceptual quality, STFTCodec achieves superior results over both waveform-based and spectral-based baselines across bitrates, with flexible compression controlled by STFT parameters. This work demonstrates the viability of spectral-domain neural codecs for efficient, high-fidelity audio coding and suggests future directions for spectral-aware audio generation.
Abstract
We present STFTCodec, a novel spectral-based neural audio codec that efficiently compresses audio using Short-Time Fourier Transform (STFT). Unlike waveform-based approaches that require large model capacity and substantial memory consumption, this method leverages STFT for compact spectral representation and introduces unwrapped phase derivatives as auxiliary features. Our architecture employs parallel magnitude and phase processing branches enhanced by advanced feature extraction mechanisms. By relaxing strict phase reconstruction constraints while maintaining phase-aware processing, we achieve superior perceptual quality. Experimental results demonstrate that STFTCodec outperforms both waveform-based and spectral-based approaches across multiple bitrates, while offering unique flexibility in compression ratio adjustment through STFT parameter modification without architectural changes.
