Sdílet prostřednictvím


ConversationTranslator class

Připojte se ke konverzaci, odejděte nebo se k ní připojte.

Extends

ConversationCommon

Konstruktory

ConversationTranslator(AudioConfig)

Vlastnosti

canceled
conversationExpiration
participants
participantsChanged
properties
recognized
recognizing
sessionStarted
sessionStopped
speechRecognitionLanguage
textMessageReceived
transcribed
transcribing

Metody

dispose(string, () => void, (error: string) => void)
isDisposed()
joinConversationAsync(IConversation, string, Callback, Callback)

Připojte se ke konverzaci. Pokud se jedná o hostitele, předejte dříve vytvořený objekt Konverzace.

joinConversationAsync(string, string, string, Callback, Callback)
leaveConversationAsync(Callback, Callback)

Opustit konverzaci

onToken(IAuthentication)
sendTextMessageAsync(string, Callback, Callback)

Odeslání textové zprávy

setServiceProperty(string, string)
startTranscribingAsync(Callback, Callback)

Začít mluvit

stopTranscribingAsync(Callback, Callback)

Přestat mluvit

Podrobnosti konstruktoru

ConversationTranslator(AudioConfig)

new ConversationTranslator(audioConfig?: AudioConfig)

Parametry

audioConfig
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

Participant[] participants

Hodnota vlastnosti

participantsChanged

participantsChanged: (sender: IConversationTranslator, event: ConversationParticipantsChangedEventArgs) => void

Hodnota vlastnosti

(sender: IConversationTranslator, event: ConversationParticipantsChangedEventArgs) => void

properties

PropertyCollection properties

Hodnota vlastnosti

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