Skip to content

Commit

Permalink
docs: update transcription docs (#481)
Browse files Browse the repository at this point in the history
* docs: update transcription docs

* update transcriptionChunkReceived payload format
  • Loading branch information
quitrk authored Dec 15, 2023
1 parent da9e154 commit 26d78b3
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
4 changes: 3 additions & 1 deletion docs/dev-guide/iframe-commands.md
Original file line number Diff line number Diff line change
Expand Up @@ -436,7 +436,9 @@ Enables or disables the subtitles.

```javascript
api.executeCommand('setSubtitles',
enabled: boolean
enabled: boolean,
displaySubtitles: boolean = true,
language: string | null = 'en'
);
```

Expand Down
11 changes: 9 additions & 2 deletions docs/dev-guide/iframe-events.md
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 26d78b3

Please sign in to comment.