Using Redaction with the V‑Cloud API
Set the scrubtext
and scrubaudio
parameters to true
to enable default redaction in a V‑Cloud API request. The following request has default redaction enabled:
curl -F file=@sample1.wav \ -F token=t123e4567e89b12d3a456426655440000 \ -F scrubtext=true \ -F scrubaudio=true \ https://vcloud.vocitec.com/transcribe
Retrieve and output the redacted transcript and audio to a zip file:
curl -sL "https://vcloud.vocitec.com/transcribe/result/4502045b-7fb1-4bac-b814-cfc050c9f2f7?token=$token" -o cloudresult.zip
Use the scrubconf
parameter to define custom redaction rules in a V‑Cloud API request. Define the custom redaction rules as the value of scrubconf
. The following request contains a single redaction rule to match all mentions of the word "resolved" and replace them with the word "SCRUBBED":
curl -F file=@sample1.wav \ -F token=t123e4567e89b12d3a456426655440000 \ -F scrubtext=true \ -F scrubconf='[{"regex":"resolved","repl":"SCRUBBED"}]' \ https://vcloud.vocitec.com/transcribe
The scruboffset
parameter can delay redaction until specified (N) seconds into audio. The following example is a V‑Cloud API request where default redaction activates 10 seconds into the provided audio file:
curl -F file=@sample1.wav \ -F token=t123e4567e89b12d3a456426655440000 \ -F scrubtext=true \ -F scrubaudio=true \ -F scruboffset=10 \ https://vcloud.vocitec.com/transcribe
Refer to Redaction Parameters for more detailed information on the parameters used in the examples above.