Skip to content

Latest commit

 

History

History
18 lines (14 loc) · 808 Bytes

README.md

File metadata and controls

18 lines (14 loc) · 808 Bytes

Redact PII with Python

Automatically redact PII from audio and video files in minutes with Python.

Companion repo for the blog Automatically redact PII from audio and video with Python.

To use

  1. Install the AssemblyAI Python SDK
  2. Set your AssemblyAI API key as an environment variable (you can get a key here)
# Mac/Linux:
export ASSEMBLYAI_API_KEY=<YOUR_KEY>

# Windows:
set ASSEMBLYAI_API_KEY=<YOUR_KEY>
  1. Run python main.py to print a redacted transcript and URL for redacted version of a hard-coded audio file
  2. (Optional) Install termcolor with pip install termcolor, and then run python compare.py to print out a comparison of the unredacted and redacted transripts.