VolumeChange<T>

Models & Types · AiDotNet.Augmentation.Audio

Randomly changes the volume (gain) of audio.

Inheritance: AugmentationBase<T, Tensor<T>> → AudioAugmenterBase<T> → VolumeChange<T>

For Beginners

Volume change augmentation makes audio louder or quieter. This helps models become robust to different recording volumes and microphone distances.

How It Works

Gain in dB:

  • +6 dB ≈ 2x louder
  • 0 dB = no change
  • -6 dB ≈ 0.5x volume

Constructors

Constructor Summary
VolumeChange(double minGainDb, double maxGainDb, double probability, int sampleRate) Creates a new volume change augmentation.

Properties

Property Summary
double MaxGainDb { get; } Gets the maximum volume change in dB.
double MinGainDb { get; } Gets the minimum volume change in dB.

Methods

Method Summary
IDictionary<string, object> GetParameters()