Conversation class
Properties
authorization |
|
config | |
conversation |
|
conversation |
|
is |
|
participants | |
properties | |
speech |
Methods
add |
Add Participant to Conversation. |
create |
Create a conversation |
delete |
Delete a conversation. After this no one will be able to join the conversation. |
end |
End a conversation. |
lock |
Lock a conversation. This will prevent new participants from joining. |
mute |
Mute all other participants in the conversation. After this no other participants will have their speech recognitions broadcast, nor be able to send text messages. |
mute |
Mute a participant. |
remove |
Remove a participant from a conversation using the user id, Participant or User object |
start |
Start a conversation. |
unlock |
Unlocks a conversation. |
unmute |
Unmute all other participants in the conversation. |
unmute |
Unmute a participant. |
Property Details
authorizationToken
string authorizationToken
Property Value
string
config
conversationId
string conversationId
Property Value
string
conversationInfo
isConnected
boolean isConnected
Property Value
boolean
participants
properties
speechRecognitionLanguage
string speechRecognitionLanguage
Property Value
string
Method Details
addParticipantAsync(IParticipant, Callback, Callback)
Add Participant to Conversation.
function addParticipantAsync(participant: IParticipant, cb?: Callback, err?: Callback)
Parameters
- participant
- IParticipant
- cb
-
Callback
- err
-
Callback
createConversationAsync(SpeechTranslationConfig, string | Callback, Callback, Callback)
Create a conversation
static function createConversationAsync(speechConfig: SpeechTranslationConfig, arg2?: string | Callback, arg3?: Callback, arg4?: Callback): Conversation
Parameters
- speechConfig
- SpeechTranslationConfig
- arg2
-
string | Callback
- arg3
-
Callback
- arg4
-
Callback
Returns
deleteConversationAsync(Callback, Callback)
Delete a conversation. After this no one will be able to join the conversation.
function deleteConversationAsync(cb?: Callback, err?: Callback)
Parameters
- cb
-
Callback
- err
-
Callback
endConversationAsync(Callback, Callback)
End a conversation.
function endConversationAsync(cb?: Callback, err?: Callback)
Parameters
- cb
-
Callback
- err
-
Callback
lockConversationAsync(Callback, Callback)
Lock a conversation. This will prevent new participants from joining.
function lockConversationAsync(cb?: Callback, err?: Callback)
Parameters
- cb
-
Callback
- err
-
Callback
muteAllParticipantsAsync(Callback, Callback)
Mute all other participants in the conversation. After this no other participants will have their speech recognitions broadcast, nor be able to send text messages.
function muteAllParticipantsAsync(cb?: Callback, err?: Callback)
Parameters
- cb
-
Callback
- err
-
Callback
muteParticipantAsync(string, Callback, Callback)
Mute a participant.
function muteParticipantAsync(userId: string, cb?: Callback, err?: Callback)
Parameters
- userId
-
string
A user identifier
- cb
-
Callback
- err
-
Callback
removeParticipantAsync(string | IParticipant | IUser, Callback, Callback)
Remove a participant from a conversation using the user id, Participant or User object
function removeParticipantAsync(userId: string | IParticipant | IUser, cb?: Callback, err?: Callback)
Parameters
- userId
-
string | IParticipant | IUser
A user identifier
- cb
-
Callback
- err
-
Callback
startConversationAsync(Callback, Callback)
Start a conversation.
function startConversationAsync(cb?: Callback, err?: Callback)
Parameters
- cb
-
Callback
- err
-
Callback
unlockConversationAsync(Callback, Callback)
Unlocks a conversation.
function unlockConversationAsync(cb?: Callback, err?: Callback)
Parameters
- cb
-
Callback
- err
-
Callback
unmuteAllParticipantsAsync(Callback, Callback)
Unmute all other participants in the conversation.
function unmuteAllParticipantsAsync(cb?: Callback, err?: Callback)
Parameters
- cb
-
Callback
- err
-
Callback
unmuteParticipantAsync(string, Callback, Callback)
Unmute a participant.
function unmuteParticipantAsync(userId: string, cb?: Callback, err?: Callback)
Parameters
- userId
-
string
A user identifier
- cb
-
Callback
- err
-
Callback