This page explains key features available in Corti dictation enabled by the
/transcribe API endpoint. Corti provides both a dictation API and web component, ready for you to integrate with your app.Using the API
1
Authenticate with client credentials, and open the WebSocket connection.
2
Set your configuration within 10 seconds of opening the connection:
3
Once config is accepted, begin sending audio packets.
4
The server uses a voice activity detector, so recognition is processed continuously during live dictation. With
interimResults enabled, preview transcript results (isFinal: false) are returned every ~500–1,500 milliseconds. Final transcripts are returned after 1.5 seconds of silence, when commands, line or paragraph breaks are recognized, or after a maximum of 8 seconds of continuous dictation.Best practices interim & final results handling provides examples on how to display interim previews and commit final transcript results. Depending on your integration, different methods can be considered for dedicated preview area vs. inline at caret position.
5
Insert transcript text into the target editor, adapting the text as needed based on the application UI state (cursor position, selection, surrounding characters, field boundaries). The client is ultimately responsible for proper case and space logic as part of text insertion.
6
Turn the microphone on and off using a hold-to-talk or toggle-to-talk recording mode. When the microphone is turned off or muted, send a
flush message to force any pending transcript segments and detected commands to be returned; the server confirms with a flushed message and keeps the connection open for continued dictation.For recording mode and microphone guidance, see Audio Recording. See Flush the Audio Buffer for the full message definition.
7
Optionally define
commands in your configuration to let users control your application by voice. When a command phrase is recognized, the server returns a command message with the command id and resolved variables; the client is responsible for executing the corresponding action in the application.See Commands for command definitions, variables, and examples, including how to update commands mid-session.
8
Send the
end message to close the audio stream.The maximum duration for a single WebSocket connection is 4 hours. When this limit is reached, the server gracefully closes the connection by sending
usage and ended messages. To continue, open a new connection. See WebSocket Connection Management for details.Features
Languages
Corti speech to text is specifically designed for industry use. A tier system has been introduced to categorize functionality and performance that is available per language and endpoint. Languages in the Enhanced and Premier tiers have the utmost functionality and recognition accuracy - they’re the ones recommended for dictation use.
Interim Results
Interim results are low latency previews of final transcript text used to present visual feedback to the user, during active dictation, to bring reassurance that audio is being processed. This enables real-time quality validation.
Punctuation
Punctuation is essential for coherent documentation. Setting the
spokenPunctuation parameter to true in /transcribe configuration enables users to control when punctuation is inserted in the document output. Additionally, the parameter automaticPunctuation can be used to have the AI model add periods and commas as appropriate.Commands
Commands is a key functionality that brings the system beyond speech-to-text to a complete dictation solution. Put your users in the driver seat to control their workflow by defining commands to insert templates, navigate the application, automate repetitive tasks, and more!
Formatting
Speech to text can be used to create a verbatim transcript of the audio; however, some content is not documented in the same manner as it is verbalized. The
formatting features provide control over how key information should for represented in the textual output.Audio Events
Real-time events during audio streaming about quality and speech activity, intended to notify integrator of audio health degradation, periods of silence, or other events that could support application behavior or user warnings.
Replacements
Ability to define words or phrases that should be returned in place of the standard output by the speech-to-text model.
Keyterms
Bias speech-to-text output so that new words can be introduced to the system vocabulary (e.g., surnames) or to improve recognition reliability for homophones and words with ambiguous pronunciation.
Please contact us for more information or help.