Skip to content

modules.audio.localization.analyzer

Classes Diagram

Module Dependencies

Classes

AudioAnalyzer

Inherits from: ABC

Abstract base class for analyzing audio data to determine the angle of arrival (AoA) of a drone.

Subclasses must implement audio buffer processing, inference integration, and angle computation.

Constructor

AudioAnalyzer(self, sample_rate: int)

Members

sample_rate

Methods

push_buffer(self, buffer: AudioBuffer)

@abstractmethod

Add audio buffer data to the analyzer for processing.

Args:
buffer: Audio data buffer to be analyzed.

push_inference(self, inference: InferenceResult)

@abstractmethod

Add inference result to the analyzer for angle computation.

Args:
inference: Result of an inference on drone presence for a certain channel.

get_angle(self) → float

@abstractmethod

Compute and return the angle of arrival of the drone.

Returns:
Angle of arrival in degrees, between 0 and 360.