ConversationTranslator class
Anslut, lämna eller anslut till en konversation.
- Extends
-
ConversationCommon
Konstruktorer
Conversation |
Egenskaper
canceled | |
conversation |
|
participants | |
participants |
|
properties | |
recognized | |
recognizing | |
session |
|
session |
|
speech |
|
text |
|
transcribed | |
transcribing |
Metoder
dispose(string, () => void, (error: string) => void) | |
is |
|
join |
Delta i en konversation. Om det här är värden skickar du det tidigare skapade konversationsobjektet. |
join |
|
leave |
Lämna konversationen |
on |
|
send |
Skicka ett sms |
set |
|
start |
Börja tala |
stop |
Sluta tala |
Konstruktorinformation
ConversationTranslator(AudioConfig)
Egenskapsinformation
canceled
canceled: (sender: ConversationHandler, event: ConversationTranslationCanceledEventArgs) => void
Egenskapsvärde
(sender: ConversationHandler, event: ConversationTranslationCanceledEventArgs) => void
conversationExpiration
conversationExpiration: (sender: IConversationTranslator, event: ConversationExpirationEventArgs) => void
Egenskapsvärde
(sender: IConversationTranslator, event: ConversationExpirationEventArgs) => void
participants
participantsChanged
participantsChanged: (sender: IConversationTranslator, event: ConversationParticipantsChangedEventArgs) => void
Egenskapsvärde
(sender: IConversationTranslator, event: ConversationParticipantsChangedEventArgs) => void
properties
recognized
recognized: (sender: IConversationTranslator, event: TranslationRecognitionEventArgs) => void
Egenskapsvärde
(sender: IConversationTranslator, event: TranslationRecognitionEventArgs) => void
recognizing
recognizing: (sender: IConversationTranslator, event: TranslationRecognitionEventArgs) => void
Egenskapsvärde
(sender: IConversationTranslator, event: TranslationRecognitionEventArgs) => void
sessionStarted
sessionStarted: (sender: ConversationHandler, event: SessionEventArgs) => void
Egenskapsvärde
(sender: ConversationHandler, event: SessionEventArgs) => void
sessionStopped
sessionStopped: (sender: ConversationHandler, event: SessionEventArgs) => void
Egenskapsvärde
(sender: ConversationHandler, event: SessionEventArgs) => void
speechRecognitionLanguage
string speechRecognitionLanguage
Egenskapsvärde
string
textMessageReceived
textMessageReceived: (sender: IConversationTranslator, event: ConversationTranslationEventArgs) => void
Egenskapsvärde
(sender: IConversationTranslator, event: ConversationTranslationEventArgs) => void
transcribed
transcribed: (sender: IConversationTranslator, event: ConversationTranslationEventArgs) => void
Egenskapsvärde
(sender: IConversationTranslator, event: ConversationTranslationEventArgs) => void
transcribing
transcribing: (sender: IConversationTranslator, event: ConversationTranslationEventArgs) => void
Egenskapsvärde
(sender: IConversationTranslator, event: ConversationTranslationEventArgs) => void
Metodinformation
dispose(string, () => void, (error: string) => void)
function dispose(reason?: string, success?: () => void, err?: (error: string) => void)
Parametrar
- reason
-
string
- success
-
() => void
- err
-
(error: string) => void
isDisposed()
function isDisposed(): boolean
Returer
boolean
joinConversationAsync(IConversation, string, Callback, Callback)
Delta i en konversation. Om det här är värden skickar du det tidigare skapade konversationsobjektet.
function joinConversationAsync(conversation: IConversation, nickname: string, cb?: Callback, err?: Callback)
Parametrar
- conversation
-
IConversation
- nickname
-
string
- cb
-
Callback
- err
-
Callback
joinConversationAsync(string, string, string, Callback, Callback)
function joinConversationAsync(conversationId: string, nickname: string, lang: string, cb?: Callback, err?: Callback)
Parametrar
- conversationId
-
string
- nickname
-
string
- lang
-
string
- cb
-
Callback
- err
-
Callback
leaveConversationAsync(Callback, Callback)
Lämna konversationen
function leaveConversationAsync(cb?: Callback, err?: Callback)
Parametrar
- cb
-
Callback
- err
-
Callback
onToken(IAuthentication)
function onToken(token: IAuthentication)
Parametrar
- token
-
IAuthentication
sendTextMessageAsync(string, Callback, Callback)
Skicka ett sms
function sendTextMessageAsync(message: string, cb?: Callback, err?: Callback)
Parametrar
- message
-
string
- cb
-
Callback
- err
-
Callback
setServiceProperty(string, string)
function setServiceProperty(name: string, value: string)
Parametrar
- name
-
string
- value
-
string
startTranscribingAsync(Callback, Callback)
Börja tala
function startTranscribingAsync(cb?: Callback, err?: Callback)
Parametrar
- cb
-
Callback
- err
-
Callback
stopTranscribingAsync(Callback, Callback)
Sluta tala
function stopTranscribingAsync(cb?: Callback, err?: Callback)
Parametrar
- cb
-
Callback
- err
-
Callback