-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #11 from dyte-in/feat/start-request-params
- Loading branch information
Showing
6 changed files
with
106 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,6 +31,12 @@ activateTranscriptions({ | |
symblAccessToken: 'ACCESS_TOKEN_FROM_SYMBL_AI', | ||
connectionId: 'SOME_ARBITRARY_CONNECTION_ID', // optional, | ||
speakerUserId: 'SOME_ARBITRARY_USER_ID_FOR_SPEAKER', // optional | ||
symblStartRequestParams: { // optional. Subset of https://docs.symbl.ai/reference/streaming-api-reference#start_request | ||
noConnectionTimeout: 0, | ||
config: { | ||
sentiment: false, | ||
}, | ||
}, | ||
}); | ||
``` | ||
|
||
|
@@ -40,6 +46,27 @@ This method internally connects with Symbl using Websocket connection & automati | |
|
||
`speakerUserId` field is optional. If not passed, value of `meeting.self.clientSpecificId` will be used as `speakerUserId`. | ||
|
||
`symblStartRequestParams` field is optional. In case you want to control Symbl settings further, you can override the values by passing just the fields to override, from https://docs.symbl.ai/reference/streaming-api-reference#start_request. | ||
|
||
We perform deep merge of the passed value with the defaults, therefore no need to construct complete start_request message. For example, If you want to add just the email field to speaker and also want to change noConnectionTimeout to 300, you can do so using the following code snippet. | ||
|
||
```js | ||
activateTranscriptions({ | ||
meeting: meeting, // From DyteClient.init | ||
symblAccessToken: 'ACCESS_TOKEN_FROM_SYMBL_AI', | ||
connectionId: 'SOME_ARBITRARY_CONNECTION_ID', // optional, | ||
speakerUserId: 'SOME_ARBITRARY_USER_ID_FOR_SPEAKER', // optional | ||
symblStartRequestParams: { // optional. Any subset of https://docs.symbl.ai/reference/streaming-api-reference#start_request | ||
noConnectionTimeout: 300, | ||
speaker: { | ||
email: '[email protected]', | ||
} | ||
} | ||
}); | ||
``` | ||
|
||
<b>Note:</b> If, in case, the passed fields are incorrect or poorly placed, conversation might not get created. In such cases, an error would be logged in developer console for you to debug further. | ||
|
||
|
||
4. If you want to show transcriptions to a participant or for `self`, you can do so using the following snippet. | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters