ConversationTranslator class
会話に参加、脱退、または接続します。
- Extends
-
ConversationCommon
コンストラクター
Conversation |
プロパティ
canceled | |
conversation |
|
participants | |
participants |
|
properties | |
recognized | |
recognizing | |
session |
|
session |
|
speech |
|
text |
|
transcribed | |
transcribing |
メソッド
コンストラクターの詳細
ConversationTranslator(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
participantsChanged
participantsChanged: (sender: IConversationTranslator, event: ConversationParticipantsChangedEventArgs) => void
プロパティ値
(sender: IConversationTranslator, event: ConversationParticipantsChangedEventArgs) => void
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