Returning redacted JSON and audio


Transcribe a short audio file and return both redacted JSON and redacted audio. Files are automatically returned as a ZIP archive when audio redaction is active. The curl "-o" option is used to save ZIP results to a file.


curl -F scrubaudio=true \
     -F scrubtext=true \
     -F model=eng1:callcenter \
     -F gender=true -F emotion=true \
     -F file=@sample1.wav \
      http://vblaze_name:17171/transcribe -o


Tip: Check the warning tag in the JSON output to see if there were any issues with the transcription.
$  ls -l
total 80
-rw-r--r-- 1 user-name user-group 81373 Oct  7 13:38

$ unzip -o
  inflating: sample1.json            
  inflating: sample1.wav             

$ ls -l
total 188
-rw-r--r-- 1 user-name user-group   1603 Oct  7  2019 sample1.json
-rw-r--r-- 1 user-name user-group 104044 Oct  7  2019 sample1.wav
-rw-r--r-- 1 user-name user-group  81373 Oct  7 13:38