nemo_automodel.components.models.inkling.feature_extraction
nemo_automodel.components.models.inkling.feature_extraction
Native log-mel feature extraction for Inkling audio inputs.
Module Contents
Classes
Functions
Data
API
Bases: SequenceFeatureExtractor
Extract log-mel spectrograms for Inkling dMel quantization.
Extract log-mel features from one clip or a batch.
Parameters:
One waveform of shape [samples] or [samples, channels],
or a list of such waveforms.
Sampling rate used by the supplied waveform.
Transformers padding strategy for the waveform batch.
Optional maximum waveform length in samples.
Whether to truncate waveforms to max_length.
Optional waveform padding multiple.
Whether to return a valid-frame mask.
Requested output tensor framework.
Device used for feature extraction.
Additional padding arguments.
Returns: BatchFeature
A batch containing input_features with shape [batch, frames, mel_bins]
Compute batched log-mel features.
Parameters:
Tensor of shape [batch, samples].
Device used for STFT and filter-bank computation.
Returns: torch.Tensor
Tensor of shape [batch, frames, mel_bins].
Convert a floating sample count to an exact integer.
Convert one audio clip to a mono fp32 waveform.
Parameters:
Tensor or array of shape [samples] or [samples, channels].
Returns: torch.Tensor
Tensor of shape [samples] in fp32.