Using Redaction with the V‑Blaze API
Define the values of scrubtext
and scrubaudio
parameters as true
to enable default redaction in the V‑Blaze API. The following command is a V‑Blaze API call with default redaction enabled.
curl -F scrubtext=true \ -F scrubaudio=true \ -F file=@sample1.wav \ http://vblaze_name:17171/transcribe
Use the scrubconf
parameter to define custom redaction rules in V‑Blaze. Define your custom redaction rules as the value of the scrubconf
parameter. The following command is a V‑Blaze API call using a custom redaction rule to match all digits and replace them with "#":
curl -F scrubtext=true \ -F scrubaudio=true \ -F scrubconf={"regex":“\\d","repl":“#"} \ -F file=@sample1.wav \ http://vblaze_name:17171/transcribe
The recommended approach is to auto-populate scrubconf
with the contents of a local redaction file using the redirection operator <
. This approach makes it easier to edit and maintain rules over time. The following command is a V‑Blaze API call that uses the redaction rules defined in myScrubFile.conf
.
curl -F scrubtext=true \ -F scrubaudio=true \ -F scrubconf="$(</path/to/myScrubFile.conf)" \ -F file=@sample1.wav \ http://vblaze_name:17171/transcribe