Dela via


ConversationTranslator class

Anslut, lämna eller anslut till en konversation.

Extends

ConversationCommon

Konstruktorer

ConversationTranslator(AudioConfig)

Egenskaper

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

Metoder

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

Delta i en konversation. Om det här är värden skickar du det tidigare skapade konversationsobjektet.

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

Lämna konversationen

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

Skicka ett sms

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

Börja tala

stopTranscribingAsync(Callback, Callback)

Sluta tala

Konstruktorinformation

ConversationTranslator(AudioConfig)

new ConversationTranslator(audioConfig?: AudioConfig)

Parametrar

audioConfig
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

Participant[] participants

Egenskapsvärde

participantsChanged

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

Egenskapsvärde

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

properties

PropertyCollection properties

Egenskapsvärde

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