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