Speech-to-Text (Streaming)
Getting Started
An introduction to getting transcription data from live streaming audio in real time.
In this guide, you’ll learn how to automatically transcribe live streaming audio in real time using Reverie’s SDKs, which are supported for use with the Reverie API.
Before you start, you’ll need to follow the steps in the Get your API Credentials to obtain your API key.
Include the SDK
To use Reverie’s Speech-to-Text Streaming SDK, include the following CDN in your project:
Install Dependencies
Transcribe Audio from a Remote Stream
The following code shows how to transcribe audio from a remote audio stream like a microphone
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:
id
: API will auto-assign assign a unique identification number for each request.success
: Will indicate the functional status of the API:- If the
success
= true, then the API is functioning and ready to generate output. - If the
success
= false, then the API is not functional and has some errors
- If the
final
: Will report whether the received output is partial or final:- If the
final
= true, then the received text is the final output. - If the
final
= false, then the text received is partial and is still processing the file.
- If the
cause
: Reason for obtaining the final output.text
: The streaming audio input is converted into text format in the requested language.confidence
: The level of confidence that Streaming STT API has in the accuracy of the transcription.display_text
: The beautified text of the final transcript. If the final transcript consists of digits, URL, app names, it is quickly converted to a readable format for the user.