Before you start, you’ll need to follow the steps in the Get your API
Credentials to obtain your API key.
Make your first Call
Make your first API Call using the cURL request. Add your own API Credentials where it says<YOUR-APP-ID> & <YOUR-API-KEY>
and then run the following example in a terminal or your favorite API client.
Step 1 : Upload the Audio File
Request : Transcribing Audio
Request: Transcribing Audio other than Default Format
Response: Success
Response: Error Message
API References
HTTP Request URL
Headers
- Specify the language code.
- Example:
hi - Refer to section Language Codes for valid language code.
- This field identifies your use case type and set of the terminology defined for transcription.
- e.g. for general audio is ‘generic’
- It is only required for the first API i.e Upload File API.
- Mention the audio sample rate and file format of the uploaded file.
- Refer to section Supported Audio Formats for valid audio format code.
- It is only required for the first API i.e Upload File API
- Note:
- By default, the format =
16k_int16. (WAV, Signed 16 bit, 16,000 or 16K Hz). - It is an optional parameter.
- By default, the format =
Query Parameter
Response
- A unique Identity number auto-assigned by the API for each request, to be used to fetch job status and transcripts.
SDKs
Reverie has several SDKs that can make it easier to use the API. Follow these steps to use the SDK of your choice to make a Reverie Speech-to-Text request.Install Dependencies
Transcribe Audio from an Audio File
To automatically transcribe pre-recorded audio using Reverie’s SDK, follow these stepsResults
In order to see the results from Reverie, you must run the application. Run your application from the terminal. Your transcripts will appear in your shell.Analyzing the Response
id: A unique Identity number auto-assigned by the API for each request.success: Provides a message code which can be used to look up the nature of the response returned by the API.final:Provides a brief description about the response returned by the API.text: An array of transcript objects including, channel_number, transcript, list of words with start time, end time and confidence.Please check the sample response.cause: An array of transcript objects including, channel_number, transcript, list of words with start time, end time and confidence.Please check the sample response.confidence: An array of transcript objects including, channel_number, transcript, list of words with start time, end time and confidence.Please check the sample response.display_text: An array of transcript objects including, channel_number, transcript, list of words with start time, end time and confidence.Please check the sample response.