diff --git a/docs/dev-guide/iframe-commands.md b/docs/dev-guide/iframe-commands.md index 19ac92b71..69bdfd8f4 100644 --- a/docs/dev-guide/iframe-commands.md +++ b/docs/dev-guide/iframe-commands.md @@ -436,7 +436,9 @@ Enables or disables the subtitles. ```javascript api.executeCommand('setSubtitles', - enabled: boolean + enabled: boolean, + displaySubtitles: boolean = true, + language: string | null = 'en' ); ``` diff --git a/docs/dev-guide/iframe-events.md b/docs/dev-guide/iframe-events.md index b63091a9d..8694aca34 100644 --- a/docs/dev-guide/iframe-events.md +++ b/docs/dev-guide/iframe-events.md @@ -760,11 +760,18 @@ The listener receives an object with the following structure: ```javascript { + // Transcription language + language: string, + // ID for this chunk. messageID: string, - // Name of the participant. - participantName: string, + // participant info + participant: { + avatarUrl: string, + id: string + name: string, + }, // If the transcription is final, the text will be here. final: string,