Spaces:
Runtime error
Runtime error
Script for Processing Multiple Local Audio Files and Sending to Whisper-WebUI on Other Server
#28
by
AustinSaintAubin
- opened
I am trying to update my script to interface with whisper-webui.
Currently my script works with Whisper ASR Webservice noted in issue 93.
The hangup I have is composing a query for CURL to work with whisper-webui API.
Please help if you can, here is what I have currently
curl -X POST -H 'Content-type: application/json' --data '{ "data": [ "tiny", "English","", {"name":"audio.wav","data":"data:audio/wav;base64,UklGRiQAAABXQVZFZm10IBAAAAABAAEARKwAAIhYAQACABAAZGF0YQAAAAA="}, "transcribe", "none", 5, 30, false, false, ] }' http://192.168.10.91:7860/run/predict
Output
{"detail":[{"loc":["body",184],"msg":"Expecting value: line 1 column 185 (char 184)","type":"value_error.jsondecode","ctx":{"msg":"Expecting value","doc":"{ \"data\": [ \"tiny\", \"\",\"\", {\"name\":\"audio.wav\",\"data\":\"data:audio/wav;base64,UklGRiQAAABXQVZFZm10IBAAAAABAAEARKwAAIhYAQACABAAZGF0YQAAAAA=\"}, \"transcribe\", \"none\", 5, 30, false, false, ] }","pos":184,"lineno":1,"colno":185}}]}