Using redaction with V‑Blaze
Set scrubtext and scrubaudio parameters to true to enable default redaction in a V‑Blaze API request. The following request has default redaction enabled:
curl -F scrubtext=true \
-F scrubaudio=true \
-F file=@sample1.wav \
http://vblaze_name:17171/transcribeUse the scrubconf parameter for custom redaction rules. Define the custom redaction rules as the value of the scrubconf parameter. The following request contains a single 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/transcribeThe 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 request uses 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/transcribeThe scruboffset parameter can delay redaction until specified (N) seconds into audio. The following example is a V‑Blaze API request where default redaction is enabled 10 seconds into the provided audio file:
curl -F scrubtext=true \
-F scrubaudio=true \
-F scruboffset=10 \
-F file=@sample1.wav \
http://vblaze_name:17171/transcribeRefer to Redaction Parameters for more detailed information on the parameters used in the examples above.
