ConversationTranslator class
Připojte se ke konverzaci, odejděte nebo se k ní připojte.
- Extends
-
ConversationCommon
Konstruktory
Conversation |
Vlastnosti
canceled | |
conversation |
|
participants | |
participants |
|
properties | |
recognized | |
recognizing | |
session |
|
session |
|
speech |
|
text |
|
transcribed | |
transcribing |
Metody
dispose(string, () => void, (error: string) => void) | |
is |
|
join |
Připojte se ke konverzaci. Pokud se jedná o hostitele, předejte dříve vytvořený objekt Konverzace. |
join |
|
leave |
Opustit konverzaci |
on |
|
send |
Odeslání textové zprávy |
set |
|
start |
Začít mluvit |
stop |
Přestat mluvit |
Podrobnosti konstruktoru
ConversationTranslator(AudioConfig)
Podrobnosti vlastnosti
canceled
canceled: (sender: ConversationHandler, event: ConversationTranslationCanceledEventArgs) => void
Hodnota vlastnosti
(sender: ConversationHandler, event: ConversationTranslationCanceledEventArgs) => void
conversationExpiration
conversationExpiration: (sender: IConversationTranslator, event: ConversationExpirationEventArgs) => void
Hodnota vlastnosti
(sender: IConversationTranslator, event: ConversationExpirationEventArgs) => void
participants
participantsChanged
participantsChanged: (sender: IConversationTranslator, event: ConversationParticipantsChangedEventArgs) => void
Hodnota vlastnosti
(sender: IConversationTranslator, event: ConversationParticipantsChangedEventArgs) => void
properties
recognized
recognized: (sender: IConversationTranslator, event: TranslationRecognitionEventArgs) => void
Hodnota vlastnosti
(sender: IConversationTranslator, event: TranslationRecognitionEventArgs) => void
recognizing
recognizing: (sender: IConversationTranslator, event: TranslationRecognitionEventArgs) => void
Hodnota vlastnosti
(sender: IConversationTranslator, event: TranslationRecognitionEventArgs) => void
sessionStarted
sessionStarted: (sender: ConversationHandler, event: SessionEventArgs) => void
Hodnota vlastnosti
(sender: ConversationHandler, event: SessionEventArgs) => void
sessionStopped
sessionStopped: (sender: ConversationHandler, event: SessionEventArgs) => void
Hodnota vlastnosti
(sender: ConversationHandler, event: SessionEventArgs) => void
speechRecognitionLanguage
string speechRecognitionLanguage
Hodnota vlastnosti
string
textMessageReceived
textMessageReceived: (sender: IConversationTranslator, event: ConversationTranslationEventArgs) => void
Hodnota vlastnosti
(sender: IConversationTranslator, event: ConversationTranslationEventArgs) => void
transcribed
transcribed: (sender: IConversationTranslator, event: ConversationTranslationEventArgs) => void
Hodnota vlastnosti
(sender: IConversationTranslator, event: ConversationTranslationEventArgs) => void
transcribing
transcribing: (sender: IConversationTranslator, event: ConversationTranslationEventArgs) => void
Hodnota vlastnosti
(sender: IConversationTranslator, event: ConversationTranslationEventArgs) => void
Podrobnosti metody
dispose(string, () => void, (error: string) => void)
function dispose(reason?: string, success?: () => void, err?: (error: string) => void)
Parametry
- reason
-
string
- success
-
() => void
- err
-
(error: string) => void
isDisposed()
function isDisposed(): boolean
Návraty
boolean
joinConversationAsync(IConversation, string, Callback, Callback)
Připojte se ke konverzaci. Pokud se jedná o hostitele, předejte dříve vytvořený objekt Konverzace.
function joinConversationAsync(conversation: IConversation, nickname: string, cb?: Callback, err?: Callback)
Parametry
- 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)
Parametry
- conversationId
-
string
- nickname
-
string
- lang
-
string
- cb
-
Callback
- err
-
Callback
leaveConversationAsync(Callback, Callback)
Opustit konverzaci
function leaveConversationAsync(cb?: Callback, err?: Callback)
Parametry
- cb
-
Callback
- err
-
Callback
onToken(IAuthentication)
function onToken(token: IAuthentication)
Parametry
- token
-
IAuthentication
sendTextMessageAsync(string, Callback, Callback)
Odeslání textové zprávy
function sendTextMessageAsync(message: string, cb?: Callback, err?: Callback)
Parametry
- message
-
string
- cb
-
Callback
- err
-
Callback
setServiceProperty(string, string)
function setServiceProperty(name: string, value: string)
Parametry
- name
-
string
- value
-
string
startTranscribingAsync(Callback, Callback)
Začít mluvit
function startTranscribingAsync(cb?: Callback, err?: Callback)
Parametry
- cb
-
Callback
- err
-
Callback
stopTranscribingAsync(Callback, Callback)
Přestat mluvit
function stopTranscribingAsync(cb?: Callback, err?: Callback)
Parametry
- cb
-
Callback
- err
-
Callback