共用方式為


ConversationTranslator class

加入、離開或連線至交談。

Extends

ConversationCommon

建構函式

ConversationTranslator(AudioConfig)

屬性

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

方法

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

加入交談。 如果這是主機,請傳入先前建立的 Conversation 物件。

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

離開交談

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

傳送文字訊息

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

開始說話

stopTranscribingAsync(Callback, Callback)

停止說話

建構函式詳細資料

ConversationTranslator(AudioConfig)

new ConversationTranslator(audioConfig?: AudioConfig)

參數

audioConfig
AudioConfig

屬性詳細資料

canceled

canceled: (sender: ConversationHandler, event: ConversationTranslationCanceledEventArgs) => void

屬性值

(sender: ConversationHandler, event: ConversationTranslationCanceledEventArgs) => void

conversationExpiration

conversationExpiration: (sender: IConversationTranslator, event: ConversationExpirationEventArgs) => void

屬性值

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

participants

Participant[] participants

屬性值

participantsChanged

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

屬性值

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

properties

PropertyCollection properties

屬性值

recognized

recognized: (sender: IConversationTranslator, event: TranslationRecognitionEventArgs) => void

屬性值

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

recognizing

recognizing: (sender: IConversationTranslator, event: TranslationRecognitionEventArgs) => void

屬性值

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

sessionStarted

sessionStarted: (sender: ConversationHandler, event: SessionEventArgs) => void

屬性值

(sender: ConversationHandler, event: SessionEventArgs) => void

sessionStopped

sessionStopped: (sender: ConversationHandler, event: SessionEventArgs) => void

屬性值

(sender: ConversationHandler, event: SessionEventArgs) => void

speechRecognitionLanguage

string speechRecognitionLanguage

屬性值

string

textMessageReceived

textMessageReceived: (sender: IConversationTranslator, event: ConversationTranslationEventArgs) => void

屬性值

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

transcribed

transcribed: (sender: IConversationTranslator, event: ConversationTranslationEventArgs) => void

屬性值

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

transcribing

transcribing: (sender: IConversationTranslator, event: ConversationTranslationEventArgs) => void

屬性值

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

方法詳細資料

dispose(string, () => void, (error: string) => void)

function dispose(reason?: string, success?: () => void, err?: (error: string) => void)

參數

reason

string

success

() => void

err

(error: string) => void

isDisposed()

function isDisposed(): boolean

傳回

boolean

joinConversationAsync(IConversation, string, Callback, Callback)

加入交談。 如果這是主機,請傳入先前建立的 Conversation 物件。

function joinConversationAsync(conversation: IConversation, nickname: string, cb?: Callback, err?: Callback)

參數

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)

參數

conversationId

string

nickname

string

lang

string

cb

Callback

err

Callback

leaveConversationAsync(Callback, Callback)

離開交談

function leaveConversationAsync(cb?: Callback, err?: Callback)

參數

cb

Callback

err

Callback

onToken(IAuthentication)

function onToken(token: IAuthentication)

參數

token

IAuthentication

sendTextMessageAsync(string, Callback, Callback)

傳送文字訊息

function sendTextMessageAsync(message: string, cb?: Callback, err?: Callback)

參數

message

string

cb

Callback

err

Callback

setServiceProperty(string, string)

function setServiceProperty(name: string, value: string)

參數

name

string

value

string

startTranscribingAsync(Callback, Callback)

開始說話

function startTranscribingAsync(cb?: Callback, err?: Callback)

參數

cb

Callback

err

Callback

stopTranscribingAsync(Callback, Callback)

停止說話

function stopTranscribingAsync(cb?: Callback, err?: Callback)

參數

cb

Callback

err

Callback