AudioEnhancerBase<T>

Base Classes · AiDotNet.Audio.Enhancement

Base class for algorithmic audio enhancement (non-neural network based).

Implements: IAudioEnhancer<T>

Known derived types: SpectralSubtractionEnhancer<T>

For Beginners

for provides AI safety functionality. Default values follow the original paper settings.

How It Works

Provides common functionality for all audio enhancers including:

  • Frame-based processing with overlap-add
  • Streaming mode with state management
  • STFT-based analysis/synthesis

Properties

Property Summary
double EnhancementStrength { get; set; }
int LatencySamples { get; }
int NumChannels { get; set; }
int SampleRate { get; set; } Audio sample rate.

Methods

Method Summary
Tensor<T> Enhance(Tensor<T> audio)
Tensor<T> EnhanceWithReference(Tensor<T> audio, Tensor<T> reference)
Tensor<T> ProcessChunk(Tensor<T> audioChunk)
void EstimateNoiseProfile(Tensor<T> noiseOnlyAudio)
void ResetState()