ConversationTranslator class

Aggiungere, lasciare o connettersi a una conversazione.

Extends

ConversationCommon

Costruttori

ConversationTranslator(AudioConfig)

Proprietà

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

Metodi

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

Partecipare a una conversazione. Se si tratta dell'host, passare l'oggetto Conversation creato in precedenza.

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

Lasciare la conversazione

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

Inviare un messaggio di testo

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

Iniziare a parlare

stopTranscribingAsync(Callback, Callback)

Smettere di parlare

Dettagli costruttore

ConversationTranslator(AudioConfig)

new ConversationTranslator(audioConfig?: AudioConfig)

Parametri

audioConfig
AudioConfig

Dettagli proprietà

canceled

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

Valore della proprietà

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

conversationExpiration

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

Valore della proprietà

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

participants

Participant[] participants

Valore della proprietà

participantsChanged

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

Valore della proprietà

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

properties

PropertyCollection properties

Valore della proprietà

recognized

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

Valore della proprietà

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

recognizing

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

Valore della proprietà

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

sessionStarted

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

Valore della proprietà

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

sessionStopped

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

Valore della proprietà

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

speechRecognitionLanguage

string speechRecognitionLanguage

Valore della proprietà

string

textMessageReceived

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

Valore della proprietà

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

transcribed

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

Valore della proprietà

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

transcribing

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

Valore della proprietà

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

Dettagli metodo

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

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

Parametri

reason

string

success

() => void

err

(error: string) => void

isDisposed()

function isDisposed(): boolean

Restituisce

boolean

joinConversationAsync(IConversation, string, Callback, Callback)

Partecipare a una conversazione. Se si tratta dell'host, passare l'oggetto Conversation creato in precedenza.

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

Parametri

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)

Parametri

conversationId

string

nickname

string

lang

string

cb

Callback

err

Callback

leaveConversationAsync(Callback, Callback)

Lasciare la conversazione

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

Parametri

cb

Callback

err

Callback

onToken(IAuthentication)

function onToken(token: IAuthentication)

Parametri

token

IAuthentication

sendTextMessageAsync(string, Callback, Callback)

Inviare un messaggio di testo

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

Parametri

message

string

cb

Callback

err

Callback

setServiceProperty(string, string)

function setServiceProperty(name: string, value: string)

Parametri

name

string

value

string

startTranscribingAsync(Callback, Callback)

Iniziare a parlare

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

Parametri

cb

Callback

err

Callback

stopTranscribingAsync(Callback, Callback)

Smettere di parlare

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

Parametri

cb

Callback

err

Callback