nicetoolbox.detectors.data_handlers.audio_handler.AudioDataHandler¶
- class nicetoolbox.detectors.data_handlers.audio_handler.AudioDataHandler(io: SequenceIO, sequence_context: SequenceRuntimeConfig, audio_start_ms: float, audio_length_ms: float, tracks_config: dict[str, nicetoolbox.configs.schemas.dataset_properties.AudioTrackConfig])[source]¶
Bases:
BaseModalityHandlerHandles audio data extraction and organization.
Uses the track configuration from dataset_properties to determine which audio streams to extract and from where.
Methods
Build audio input recipe with full file paths + time range.
Prepare audio data based on track configuration.
Attributes
Whether data for this modality was successfully prepared.
Return the name of this modality (e.g., 'video', 'audio').
streams- property is_available: bool¶
Whether data for this modality was successfully prepared.
- property modality_name: str¶
Return the name of this modality (e.g., ‘video’, ‘audio’).