useTranscription(params?) : Object
useTranscription can also be used to set up optional callbacks for transcription events.
Parameters (optional)
An object with the following optional properties:Callback for the
"transcription-error" event.Callback for the
"transcription-message" event.Callback for the
"transcription-started" event.Callback for the
"transcription-stopped" event.Deprecated 0.18.0 Callback for the
"app-message" event from transcription. This parameter is deprecated; use onTranscriptionMessage instead.Return value
An object with the following properties:true in the event of a "transcription-error".Returns
true after transcription has started.Returns the language applied for the transcription. Please check Deepgram’s language docs for details.
Returns the model applied for transcription. Please check Deepgram’s model docs for more details.
Returns
true when profanity filter is enabled. Please check Deepgram’s profanity filter docs for more details.Returns the redaction applied for transcription. Please check Deepgram’s redaction docs for more details.
Returns the
session_id for the participant who initiated the transcription.See
daily-js startTranscription().See
daily-js stopTranscription().This field is deprecated, use
model instead.Array of
Transcription object. See Transcription for more information.Timestamp for when the transcription started.
Returns the
session_id for the participant who updated the transcription most recently.