Sample Request Responses

Upload endpoint

URL: https://revapi.reverieinc.com/upload

CURL Request

curl --location --request POST 'https://revapi.reverieinc.com/upload' \
--header 'REV-API-KEY: 7e8bb5853c535d2a120fda705049c46431868ba8' \
--header 'REV-APPNAME: stt_batch' \
--header 'REV-APP-ID: com.company' \
--header 'src_lang: hi' \
--header 'domain: generic' \
--form 'file=@"/Users/user/files/b095c1e2-7703-4487-8f7b-ee5f834854fb.wav"'

Response

{
    "code": "000",
    "job_id": "990f5d04-d3c6-4d1b-a461-9cda55ad5968",
    "message": "Success. Request accepted"
}

Status endpoint

URL: https://revapi.reverieinc.com/status

CURL Request

curl --location --request GET 'https://revapi.reverieinc.com/status?job_id=990f5d04-d3c6-4d1b-a461-9cda55ad5968' \
--header 'REV-API-KEY: 7e8bb5853c535d2a120fda705049c46431868ba8' \
--header 'REV-APPNAME: stt_batch' \
--header 'REV-APP-ID: com.company'

Response

{
    "code": "000",
    "job_id": "990f5d04-d3c6-4d1b-a461-9cda55ad5968",
    "message": "Transcript ready.",
    "status": "completed"
}

Transcript endpoint

URL: https://revapi.reverieinc.com/transcript

CURL Request

curl --location --request GET 'https://revapi.reverieinc.com/transcript?job_id=990f5d04-d3c6-4d1b-a461-9cda55ad5968' \
--header 'REV-API-KEY: 7e8bb5853c535d2a120fda705049c46431868ba8' \
--header 'REV-APPNAME: stt_batch' \
--header 'REV-APP-ID: com.company'

Response

{
    "code": "000",
    "job_id": "990f5d04-d3c6-4d1b-a461-9cda55ad5968",
    "message": "Transcript ready.",
    "result": [
        {
            "channel_number": 1,
            "transcript": "भारत में आपका स्वागत है",
            "words": [
                {
                    "conf": 1.0,
                    "end": 0.75,
                    "start": 0.09,
                    "word": "भारत"
                },
                {
                    "conf": 1.0,
                    "end": 0.96,
                    "start": 0.75,
                    "word": "में"
                },
                {
                    "conf": 1.0,
                    "end": 1.68,
                    "start": 1.14,
                    "word": "आपका"
                },
                {
                    "conf": 1.0,
                    "end": 2.49,
                    "start": 1.71,
                    "word": "स्वागत"
                },
                {
                    "conf": 0.994859,
                    "end": 2.82,
                    "start": 2.49,
                    "word": "है"
                }
            ]
        }
    ]
}

Last updated