Privacy controls implemented
Author: Privacy, Authentication, and Data Handling
Author: entication
- Audio anonymization:
anonymize_audio_add_noise(wave, snr_db)— adds Gaussian noise to audio to reduce identifiability. - Audio prefix masking:
mask_audio_zero_first_seconds(wave, sample_rate, seconds)— zeroes the first N seconds. - Face blur:
blur_frames(frames)— coarse Gaussian blur applied per-frame (uses OpenCV if available).
API usage:
- /process supports query body flags anonymize_audio, mask_audio_prefix_s, blur_faces.
- /submit accepts the same flags; they are persisted with the job and applied by the background worker.
Data retention / storage
- Job store defaults to JSON-file fallback; for production use a secure Redis or DB with TTL and access controls.
- Implement automatic deletion of stored media and results after a retention period.
Legal / compliance notes
- These simple transforms do not guarantee legal anonymization under GDPR or other regimes — consult legal/privacy experts for real deployments.