Getting Started
An introduction to getting transcription data from pre-recorded audio files.
This guide will walk you through how to transcribe pre-recorded audio with the Reverie API. We provide two scenarios to try: transcribe a remote file and transcribe a local file.
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
Upload the Audio File to the API.
Request: Transcribing Audio
Response: Success
In the response, you will receive job_id
. Please note it.
Step 2 : Get the Status
Send the job_id
received in the Step 1 as the query parameter to know the status of the ongoing process of transcription.
Request: Get status of the transcription
Response: Success
In the response, you will receive status
= completed
and message
= Transcript ready
once the transcription is complete. Otherwise, you will receive status
= applying
.
Step 3 : Get the Transcript
Once the status
= completed
in the Step 2, You can use the job_id
received in the Step 1 or Step 2 as the query parameter to get the Transcript.
Request: Get transcript of the transcription
Response: Success
In this response we see:
job_id
: A unique Identity number auto-assigned by the API for each request.code
: Provides a message code which can be used to look up the nature of the response returned by the API.message
:Provides a brief description about the response returned by the API.result
: An array of transcript objects including, channel_number, transcript, list of words with start time, end time and confidence.Please check the sample response.
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 steps
Results
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
In this response we see:
job_id
: A unique Identity number auto-assigned by the API for each request.code
: Provides a message code which can be used to look up the nature of the response returned by the API.message
:Provides a brief description about the response returned by the API.result
: An array of transcript objects including, channel_number, transcript, list of words with start time, end time and confidence.Please check the sample response.