nemo_curator.stages.audio.common
nemo_curator.stages.audio.common
Module Contents
Classes
API
Dataclass
Bases: ProcessingStage[AudioTask, AudioTask]
Compute audio duration from the file at audio_filepath_key and store the result under duration_key.
Parameters:
audio_filepath_key
Key to get path to wav file.
duration_key
Key to put audio duration.
audio_filepath_key
duration_key
name
Bases: ProcessingStage[AudioTask, AudioTask]
Filter entries by comparing input_value_key against target_value.
Returns None from process() to drop entries that fail the
comparison, matching the text-modality filter convention.
Parameters:
input_value_key
The field in the dataset entries to evaluate.
target_value
The value to compare with.
operator
Comparison operator (lt, le, eq, ne, ge, gt).
name
operator