Skip to main content

Start speech recognition

POST /server/v1/asr/start Authentication: required (see Overview) Start real-time speech recognition for a channel to transcribe what’s said into text, for meeting minutes, captions, and search.
  • Calling it again for the same channel doesn’t start a second recognition session; it returns the session already in progress
  • It recognizes audio from every user in the channel whose mic is on; results carry uid and name to identify the speaker
  • One meeting in a channel (from when the channel opens until it is destroyed) is one recognition session; transcription results and meeting minutes are archived by session
  • Stopping and starting again during the meeting (for example, to change the translation language) keeps the original session and returns the original session_id, so a meeting produces only one set of minutes; a new meeting after the channel is destroyed is a new session
  • Query transcription results by session or by channel with “List speech recognition sentences”
Charges accrue continuously once started; it stops automatically when the channel is destroyed. You can also end it early with “Stop speech recognition”. If the app has automatic minutes enabled, meeting minutes are generated when the session ends, and the channel message ai_summary_ready is sent when they are ready; if the same session is started again and ends, the minutes are regenerated from all transcripts and overwrite the original ones; if translate_lang is passed (or the app has real-time translation enabled), the translation of each finalized sentence is delivered through the channel message asr_trans; if the LLM times out or fails to translate, trans_text carries placeholder text in the target language (such as “(Translation timed out: AI service responding slowly)”) together with trans_error (timeout / error); the placeholder is not saved, and the sentence’s translation is empty in the sentence list. Request parameters
string
required
Channel name Example: fire
string
Target language for real-time translation. If set, each finalized sentence in this session is translated automatically and the translation is delivered through the channel message asr_trans; if omitted, the app’s setting applies (max length 16) Example: en
Request example:
Response parameters
string
Recognition session ID, used to query sentences and get meeting minutes
Response example:

Stop speech recognition

POST /server/v1/asr/stop Authentication: required (see Overview) Stop speech recognition for a channel. Transcription results already produced are not deleted and can still be queried with “List speech recognition sentences”. Stops automatically when the channel is destroyed, so you don’t need to stop it manually first. Request parameters
string
required
Channel name Example: fire
Request example:
Response parameters data is null Response example:

List speech recognition sessions

POST /server/v1/asr/list-session Authentication: required (see Overview) List the app’s speech recognition sessions with pagination, with the meeting minutes status of each. One meeting in a channel (from open to destroy) is one session; stopping and starting again during the meeting stays in the same session. Channel names get reused (the same meeting room hosts meetings every day), so sessions are what tell the transcriptions and minutes of each meeting apart. Request parameters
string
Channel name; omit for all channels (max length 100) Example: fire
integer
Start time (filters by session start time), Unix timestamp in seconds; 0 means no limit
integer
End time, Unix timestamp in seconds; 0 means no limit
string
Sort order; defaults to start time, newest first (sortable fields: started_at, sentence_count)
integer
Page number, starting from 1 Example: 1
integer
Page size Example: 10
Request example:
Response parameters
string
Recognition session ID
string
Channel name Example: fire
integer
Recognition start time, Unix timestamp in seconds Example: 1718250918
integer
Recognition end time, Unix timestamp in seconds; 0 means recognition is in progress
integer
Session status: 1 recognizing, 2 ended
integer
Number of transcribed sentences
integer
Minutes status: -1 not generated, 0 queued, 1 generating, 2 completed, 3 failed
Response example:

List speech recognition sentences

POST /server/v1/asr/list-sentence Authentication: required (see Overview) List a channel’s transcription results with pagination; each item is one sentence, with the speaker and time.
  • Read the results in created_at order to reconstruct the full conversation; this is the data source for generating meeting minutes
  • Pass session_id to get only the sentences of one recognition session; begin_ms / end_ms are milliseconds from the start of that session and can be used directly as a caption timeline
  • Results are kept after the channel is destroyed and can be queried afterward
Sentence boundaries are decided by the recognition engine based on pauses in speech and don’t necessarily match “one complete unit of meaning”— when summarizing minutes, merge consecutive sentences before handing them to the model. Request parameters
string
Channel name; required when session_id is not passed Example: fire
string
Recognition session ID; if set, only sentences from that session are returned
string
Sort order
General search; can search transcription content
integer
Page number, starting from 1 Example: 1
integer
Page size Example: 10
Request example:
Response parameters
string
Sentence ID; matches sentence_id in the asr_trans channel message
string
Channel name Example: fire
string
Speaker’s user ID Example: 1001
string
Speaker’s display name Example: Alice
string
Transcribed text of one sentence Example: Let's finalize this plan next week
integer
Time the sentence was produced, Unix timestamp in seconds Example: 1718250918
string
ID of the recognition session it belongs to; empty for early data
integer
Sentence start time, in milliseconds from the start of the session Example: 65200
integer
Sentence end time, in milliseconds from the start of the session Example: 68900
string
Translated text; empty when translation is not enabled
string
Translation language, such as en
Response example: