V-Blaze and V-Cloud Online Help

Returning Both Scrubbed JSON and Audio

Description:

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

Command:

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 test.zip

Result:

$  ls -l
total 80
-rw-r--r-- 1 user-name user-group 81373 Oct  7 13:38 test.zip

$ unzip -o test.zip
Archive:  test.zip
  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 test.zip