V-Blaze and V-Cloud Online Help

Real Time from Standard In

Important

This method requires V‑Blaze version 7.2 or greater.

For a single part POST, this method requires cURL 7.68.0 or greater.

In this example, Pipe Viewer is used to read and rate limit the file before passing the audio to cURL via standard in.

pv -q -L16000 sample1.wav |
curl -s -XPOST \
-T - \
-H 'Content-Disposition: inline; filename="sample1.wav"' \
'vblaze_name:17171/transcribe?realtime=true&uttmaxgap=0&vadtype=level'
pv -q -L16000 sample1.wav |
curl -s \
-F 'file=@/dev/stdin' \
'vblaze_name:17171/transcribe?realtime=true&uttmaxgap=0&vadtype=level'

These examples transcribe a file named sample1.wav using a V‑Blaze REST API instance running on a server named vblaze_name; both parameters can be changed without altering the function of any commands.