On running the sample python code provided [here[(https://speech-lab-iitm.github.io/docs/api_docs/asr/#usage)
import requests
files = {
'file': open('speech_sample1.mp3', 'rb'),
'language': (None, 'hindi'),
'vtt': (None, 'true'),
}
response = requests.post('https://asr.iitm.ac.in/asr/v2/decode', files=files)
print(response.json())
I get the following error:
Traceback (most recent call last):
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
print(response.json())
^^^^^^^^^^^^^^^
raise RequestsJSONDecodeError(e.msg, e.doc, e.pos)
requests.exceptions.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
Testing the API provided through POSTMAN and curl commands returns an output in HTML format (not JSON) where it specifies for Javascript to be enabled for the app to run.
On running the sample python code provided [here[(https://speech-lab-iitm.github.io/docs/api_docs/asr/#usage)
I get the following error:
Testing the API provided through POSTMAN and curl commands returns an output in HTML format (not JSON) where it specifies for Javascript to be enabled for the app to run.