Abstract
Sound event localization and detection (SELD) aims to determine the appearance of sound classes, together with their Direction of Arrival (DOA). However, current SELD systems can only predict the activities of specific classes, for example, 13 classes in DCASE challenges. In this paper, we propose text-queried target sound event localization (SEL), a new paradigm that allows the user to input the text to describe the sound event, and the SEL model can predict the location of the related sound event. The proposed task presents a more user-friendly way for human-computer interaction. We provide a benchmark study for the proposed task and perform experiments on datasets created by simulated room impulse response (RIR) and real RIR to validate the effectiveness of the proposed methods. We hope that our benchmark will inspire the interest and additional research for text-queried sound source localization.
Introduction
Traditional Sound Event Localization and Detection (SELD) systems operate within a "closed-set" paradigm. They are typically trained to recognize and locate a fixed number of predefined sound categories, such as those defined in the DCASE challenges. This limitation restricts their utility in real-world scenarios where users may need to locate specific, arbitrary sounds that do not fit into these narrow buckets.
To address this, we introduce Text-Queried Target Sound Event Localization (SEL). Inspired by the flexibility of open-set text-to-image models, this new paradigm allows users to pinpoint sounds using natural language descriptions (e.g., "a vehicle is accelerating"). This approach bridges the gap between semantic understanding and spatial audio processing, enabling more intuitive human-computer interaction.
Methodology
Our proposed framework utilizes a multimodal fusion architecture designed to extract and combine spatial cues from audio with semantic information from text queries. The system is built upon three primary components:
- Audio Encoding: Spatial features are captured using GCC-PHAT (Generalized Cross-Correlation with Phase Transform) and processed through a ResNet18 backbone. To capture the semantic essence of the audio, we also employ a pre-trained CLAP (Contrastive Language-Audio Pretraining) audio encoder.
- Text Encoding: The user's natural language query is transformed into a representative vector using a text encoder. We evaluated several models for this purpose, including CLAP, BERT, and FlanT5.
- Modality Fusion: For static sound sources, features are merged via simple concatenation. For moving sources, a Transformer-based cross-attention mechanism is used to maintain temporal consistency across the audio and text modalities.
To optimize localization accuracy, we utilize Earth Mover’s Distance (EMD) loss. Unlike standard cross-entropy, EMD accounts for the spatial proximity between predicted and actual directions, effectively teaching the model the circular topology of 360-degree space.
Dataset Construction
As no existing datasets supported this specific task, we developed two benchmarks by pairing audio from AudioCaps with spatial simulations:
- Simulated RIR: Generated using Pyroomacoustics, this dataset simulates various room dimensions and reverberation times for static sources.
- Real RIR: A more complex dataset using real-world Room Impulse Responses via the DCASE data generator, featuring both static and dynamic (moving) sound trajectories.
Experimental Results
Our experiments demonstrate that the combination of CLAP text embeddings and GCC-PHAT audio features consistently yields the highest localization precision. In scenarios with a single target sound and background noise, the model achieved a Mean Average Error (MAE) of just 1.34°.
However, performance challenges emerge in multi-source environments. When a "distractor" sound is introduced, the MAE increases to 32.15°. Furthermore, in real-world RIR environments with moving targets, the error range expands to 45°–49°, highlighting the difficulty of maintaining semantic-spatial alignment when both the target and the acoustic environment are complex.
Conclusion and Future Work
This work establishes a foundation for open-set sound localization. While the system performs exceptionally well on single static sources, significant work remains for multi-source and dynamic real-world environments. Future research will focus on improving fusion techniques to better handle moving trajectories and evaluating the model in increasingly complex, non-simulated acoustic scenes.
Summary updated