The problem
Redaction should fit into the code you already have
Call recordings flow through many systems: a Python data pipeline, a TypeScript webhook handler, a Java service in the contact center stack. Each one should be able to send a recording for redaction in a line or two, without hand-building multipart requests and polling loops.
curl -X POST https://api.autessa.com/clients/call-redaction/redact \
-H "Authorization: $AUTESSA_API_KEY" \
-F "file=@call.wav"{
"status": "COMPLETED",
"durationSeconds": 184.2,
"redactedAudioUrl": "https://…",
"transcriptUrl": "https://…",
"redactions": [
{ "type": "CARD_NUMBER", "startMs": 61240, "endMs": 68910 },
{ "type": "CARD_CVV", "startMs": 73020, "endMs": 74400 }
]
}What you get
Python, TypeScript and Java in SecurePass
- Python: Redact().redact_file(path, types=[...]).
- TypeScript: new Redact().redactFile(path, { redact: [...] }).
- Java: Redact.fromEnv().redactFile(path, options).
- Chunked upload helpers in each: chunked(...), createUploader(...) and startChunkedUpload(...).
- Batch jobs, review and item lookup calls in every library.
- Each reads AUTESSA_API_KEY from the environment.
- In private preview: install from GitHub until the packages are on PyPI, npm and Maven Central.
How to use it
Step by step
Install the library
During the preview, install from GitHub as each library’s README describes.
Set your key
export AUTESSA_API_KEY="<keyId>:<secret>".
Redact a file
One call returns the item with its status, redacted audio link and redactions.
Python
from autessa.redact import Redact
item = Redact().redact_file("call.wav", types=["CARD_NUMBER", "CARD_CVV"])
print(item.status, item.redacted_audio_url)Packages
| Option | What it does |
|---|---|
Python | autessa-redact: redact_file, chunked, create_item, append_chunk, finalize. |
TypeScript | @autessa/redact: redactFile, createUploader, createItem, appendChunk, finalize. |
Java | com.autessa:autessa-redact: redactFile, startChunkedUpload, createItem, appendChunk, finalize. |
Types | types= in Python, redact in TypeScript and Java, the same as the API’s redact field. |
Why it is better
How SecurePass compares on python, typescript and java
Three languages, one API
Every library calls the same HTTP API, with the same types and options, so results match whichever language you use.
Chunked upload built in
Each library includes chunked upload for voice agents, not only file uploads.
Show the benchmark results
| SecurePass | Deepgram | AssemblyAI | AWS Transcribe | |
|---|---|---|---|---|
| Sensitive values protected | 97.2% | 91.6% | 88.8% | 71.9% |
| English calls | 97.8% | 88.8% | 89.6% | 73.9% |
| Spanish calls | 96.6% | 94.2% | 88.1% | 70.2% |
| Payment data (cards, bank, PIN) | 100.0% | 88.8% | 83.3% | 90.5% |
| Personal IDs (SSN, DOB, address…) | 96.6% | 94.7% | 94.9% | 83.5% |
| Health IDs (PHI) | 97.2% | 94.4% | 91.4% | 27.4% |
| Typical calls | 97.5% | 93.4% | 92.2% | 71.4% |
| Hard calls | 96.8% | 88.7% | 83.4% | 72.8% |
| Two-channel calls | 97.0% | 91.3% | 89.6% | 71.2% |
| Single-channel calls | 98.3% | 93.7% | 83.6% | 77.0% |
| Payment values recoverable (of 1,077) | 0 | 121 | 180 | 102 |
| F1, protection and tightness (fast mode) | 83.5 | 59.4 | 60.1 | 74.1 |
FAQ
Questions about python, typescript and java
How do I redact a call recording in Python?
Install the SecurePass Python library, autessa-redact, and call Redact().redact_file("call.wav", types=["CARD_NUMBER", "CARD_CVV"]). It returns the item with its status, redacted audio link and redactions.
Is there a Python library for SecurePass?
Yes, SecurePass’s Python library is autessa-redact, with Redact().redact_file(path, types=[...]), and it is in private preview and installs from GitHub.
Is there a TypeScript or Node library for SecurePass?
Yes, SecurePass’s TypeScript library is @autessa/redact, with new Redact().redactFile(path, { redact: [...] }).
Is there a Java library for SecurePass?
Yes, SecurePass’s Java library is com.autessa:autessa-redact, with Redact.fromEnv().redactFile(path, options).
Are the SecurePass libraries on PyPI, npm and Maven Central?
Not yet: the SecurePass libraries are in private preview and install from GitHub until the packages are published to PyPI, npm and Maven Central.
Do the SecurePass libraries support chunked upload for voice agents?
Yes, each SecurePass library includes chunked upload helpers: chunked in Python, createUploader in TypeScript and startChunkedUpload in Java.
How do the SecurePass libraries find my API key?
Each SecurePass library reads AUTESSA_API_KEY from the environment.
Do the SecurePass libraries give the same results as the HTTP API?
Yes, every SecurePass library calls the same HTTP API with the same types and options, so results match whichever language you use.
Can I use SecurePass from another language?
Yes, the SecurePass HTTP API works from any language that can send an HTTPS request.