nemo_curator.stages.audio.io.convert
nemo_curator.stages.audio.io.convert
Module Contents
Classes
Functions
Data
API
Bases: ProcessingStage[AudioTask, DocumentBatch]
Convert AudioTask entries into DocumentBatch DataFrames.
Overrides process_batch to aggregate an entire batch of
AudioTask objects into a single multi-row DocumentBatch,
avoiding the overhead of many single-row DataFrames. Set
batch_size to control how many audio entries land in each
DataFrame (default 64).
Non-serializable keys (torch tensors, raw audio arrays) are stripped before building the DataFrame as a safety net, even if upstream stages failed to clean them up.
batch_size
name
staticmethod
Remove non-serializable keys and any remaining tensor values.
Check if a value is a torch.Tensor without importing torch at module level.