Number Detection and Redaction

Number Detection and Redaction

VoiceBase can detect and redact numbers from your recordings.

Enabling Number Detection

To enable PCI detection, add the PCI detector to your configuration when POSTing to /media.

{  
  "prediction": { 
    "detectors": [ 
      {  
        "detectorName": "Number"
      }
    ]
  }
}

Number Detection Response

When Number detection is enabled, the predictions section of the /media resource will contain the regions where PCI is detected.

{
  "prediction": {
    "detectors": [
      {
        "detectorName": "Number",
        "detectorVersion": "1.0.0",
        "detections": [
          {
            "detectorClass": 1,
            "detectorClassLabel": "Number",
            "detectedSegments": [
              {
                "occurrences": [
                  {
                    "s": 2250,
                    "e": 2680
                  },
                  {
                    "s": 8540,
                    "e": 8830
                  }
                ]
              }
            ]
          }
        ]
      }
    ]
  }
}

Enabling Number Redaction

Number Redaction Response

Enabling Audio Redaction

Complete Examples

curl https://apis.voicebase.com/v2-beta/media \
    --header "Authorization: Bearer $TOKEN" \
    --form [email protected] \
    | tee media-post-response.json | jq '.'

export MEDIA_ID=$( jq --raw-output '.mediaId' < media-post-response.json )
echo "Uploaded file with mediaId = ${MEDIA_ID}"