Skip to content

API https://asr.iitm.ac.in/asr/v2 doesn't seem to be functioning properly #1

Description

@Haleshot

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions