IAudioFeatureExtractor<T>
Interfaces · AiDotNet.Interfaces
Defines the contract for audio feature extraction algorithms.
Known implementations: AudioFeatureExtractorBase<T>
For Beginners
Audio files are just sequences of numbers representing sound waves. Feature extractors convert these raw numbers into more useful formats:
- MFCC: Captures how humans perceive different frequencies
- Chroma: Represents musical pitch classes (C, C#, D, etc.)
- Spectral: Measures brightness, contrast, and other spectral properties
How It Works
Audio feature extractors transform raw audio waveforms into meaningful representations that can be used for tasks like speech recognition, music analysis, and audio classification.
Properties
| Property | Summary |
|---|---|
int FeatureDimension { get; } |
Gets the number of features produced per frame. |
int SampleRate { get; } |
Gets the sample rate expected by this extractor. |
string Name { get; } |
Gets the name of this feature extractor. |
Methods
| Method | Summary |
|---|---|
Matrix<T> Extract(Vector<T> audio) |
Extracts features from an audio waveform. |
Task<Tensor<T>> ExtractAsync(Tensor<T> audio, CancellationToken cancellationToken) |
Extracts features from an audio waveform asynchronously. |
Tensor<T> Extract(Tensor<T> audio) |
Extracts features from an audio waveform. |