VoiceProtectorBase<T>

Base Classes · AiDotNet.Safety.Audio

Abstract base class for voice protection modules.

Inheritance: ModelBase<T, Vector<T>, Vector<T>> → SafetyModuleBase<T> → VoiceProtectorBase<T>

Implements: IVoiceProtector<T>

For Beginners

This base class provides common code for all voice protectors. Each protector type extends this and adds its own way of making voice recordings resistant to AI voice cloning.

How It Works

Provides shared infrastructure for voice protectors including sample rate configuration and signal-to-noise ratio monitoring. Concrete implementations provide the actual protection technique (perturbation, watermark, masking).

Methods

Method Summary
IReadOnlyList<SafetyFinding> Evaluate(Vector<T> content)
Vector<T> ProtectVoice(Vector<T> audioSamples, int sampleRate)