Share via


VoiceProfileClient class

음성 프로필 작업(예: createProfile, deleteProfile)에 대한 사용자의 Speaker Recognition Handles 작업에 대한 VoiceProfileClient 클래스를 정의합니다.

Extends

생성자

VoiceProfileClient(SpeechConfig)

VoiceProfileClient 생성자입니다.

속성

authorizationToken

서비스와 통신하는 데 사용되는 권한 부여 토큰을 가져옵니다.

internalData
properties

이 VoiceProfileClient에 대해 정의된 속성 및 해당 값의 컬렉션입니다.

telemetryEnabled

이 메서드는 원격 분석 설정의 현재 상태를 반환합니다.

상속된 속성

sessionStarted

세션 시작 이벤트에 대한 이벤트 처리기를 정의합니다.

sessionStopped

세션 중지 이벤트에 대한 이벤트 처리기를 정의합니다.

speechEndDetected

음성 중지 이벤트에 대한 이벤트 처리기를 정의합니다.

speechStartDetected

음성 시작 이벤트에 대한 이벤트 처리기를 정의합니다.

메서드

close()

개체 정리 및 기본 연결 닫기

createProfileAsync(VoiceProfileType, string)

화자 인식 음성 프로필 만들기

deleteProfileAsync(VoiceProfile)

화자 인식 음성 프로필 삭제

enrollProfileAsync(VoiceProfile, AudioConfig)

화자 인식 음성 프로필 만들기

getActivationPhrasesAsync(VoiceProfileType, string)

음성 프로필 등록을 위한 유효한 권한 부여 구 가져오기

getAllProfilesAsync(VoiceProfileType)

지정된 음성 프로필 유형을 사용하여 계정의 모든 음성 프로필 가져오기

resetProfileAsync(VoiceProfile)

화자 인식 음성 프로필에 대한 모든 등록 제거

retrieveEnrollmentResultAsync(VoiceProfile)

음성 프로필의 현재 정보 가져오기

상속된 메서드

enableTelemetry(boolean)

이 메서드는 원격 분석을 전역적으로 사용하거나 사용하지 않도록 설정합니다.

생성자 세부 정보

VoiceProfileClient(SpeechConfig)

VoiceProfileClient 생성자입니다.

new VoiceProfileClient(speechConfig: SpeechConfig)

매개 변수

speechConfig
SpeechConfig

이 신시사이저에 대한 초기 속성 집합(인증 키, 지역, &c)

속성 세부 정보

authorizationToken

서비스와 통신하는 데 사용되는 권한 부여 토큰을 가져옵니다.

string authorizationToken

속성 값

string

권한 부여 토큰입니다.

internalData

object internalData

속성 값

object

properties

이 VoiceProfileClient에 대해 정의된 속성 및 해당 값의 컬렉션입니다.

PropertyCollection properties

속성 값

이 VoiceProfileClient에 대해 정의된 속성 및 해당 값의 컬렉션입니다.

telemetryEnabled

이 메서드는 원격 분석 설정의 현재 상태를 반환합니다.

static boolean telemetryEnabled

속성 값

boolean

원격 분석을 사용하도록 설정하면 true이고, 그렇지 않으면 false입니다.

상속된 속성 세부 정보

sessionStarted

세션 시작 이벤트에 대한 이벤트 처리기를 정의합니다.

public sessionStarted: (sender: Recognizer, event: SessionEventArgs) => void

속성 값

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

Recognizer.sessionStarted에서 상속

sessionStopped

세션 중지 이벤트에 대한 이벤트 처리기를 정의합니다.

public sessionStopped: (sender: Recognizer, event: SessionEventArgs) => void

속성 값

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

Recognizer.sessionStopped에서 상속됨

speechEndDetected

음성 중지 이벤트에 대한 이벤트 처리기를 정의합니다.

public speechEndDetected: (sender: Recognizer, event: RecognitionEventArgs) => void

속성 값

(sender: Recognizer, event: RecognitionEventArgs) => void

Recognizer.speechEndDetected에서 상속

speechStartDetected

음성 시작 이벤트에 대한 이벤트 처리기를 정의합니다.

public speechStartDetected: (sender: Recognizer, event: RecognitionEventArgs) => void

속성 값

(sender: Recognizer, event: RecognitionEventArgs) => void

Recognizer.speechStartDetected에서 상속

메서드 세부 정보

close()

개체 정리 및 기본 연결 닫기

function close(): Promise<void>

반환

Promise<void>

createProfileAsync(VoiceProfileType, string)

화자 인식 음성 프로필 만들기

function createProfileAsync(profileType: VoiceProfileType, lang: string): Promise<VoiceProfile>

매개 변수

profileType
VoiceProfileType

만들 음성 프로필 유형

lang

string

음성 프로필에 대한 언어 문자열(로캘)

반환

Promise<VoiceProfile>

  • VoiceProfile 약속.

deleteProfileAsync(VoiceProfile)

화자 인식 음성 프로필 삭제

function deleteProfileAsync(profile: VoiceProfile): Promise<VoiceProfileResult>

매개 변수

profile
VoiceProfile

삭제할 음성 프로필

반환

  • VoiceProfileResult의 약속입니다.

enrollProfileAsync(VoiceProfile, AudioConfig)

화자 인식 음성 프로필 만들기

function enrollProfileAsync(profile: VoiceProfile, audioConfig: AudioConfig): Promise<VoiceProfileEnrollmentResult>

매개 변수

profile
VoiceProfile

등록을 만들 음성 프로필

audioConfig
AudioConfig

등록을 만들 원본 정보

반환

  • VoiceProfileEnrollmentResult의 약속입니다.

getActivationPhrasesAsync(VoiceProfileType, string)

음성 프로필 등록을 위한 유효한 권한 부여 구 가져오기

function getActivationPhrasesAsync(profileType: VoiceProfileType, lang: string): Promise<VoiceProfilePhraseResult>

매개 변수

profileType
VoiceProfileType

프로필 형식 - 에 대한 활성화 구를 가져옵니다.

lang

string

음성 프로필에 대한 언어 문자열(로캘)

반환

getAllProfilesAsync(VoiceProfileType)

지정된 음성 프로필 유형을 사용하여 계정의 모든 음성 프로필 가져오기

function getAllProfilesAsync(profileType: VoiceProfileType): Promise<VoiceProfileEnrollmentResult[]>

매개 변수

profileType
VoiceProfileType

프로필을 나열할 프로필 유형(식별/확인)

반환

  • VoiceProfileEnrollmentResults 배열에 대한 약속입니다.

resetProfileAsync(VoiceProfile)

화자 인식 음성 프로필에 대한 모든 등록 제거

function resetProfileAsync(profile: VoiceProfile): Promise<VoiceProfileResult>

매개 변수

profile
VoiceProfile

초기화할 음성 프로필

반환

  • VoiceProfileResult의 약속입니다.

retrieveEnrollmentResultAsync(VoiceProfile)

음성 프로필의 현재 정보 가져오기

function retrieveEnrollmentResultAsync(profile: VoiceProfile): Promise<VoiceProfileEnrollmentResult>

매개 변수

profile
VoiceProfile

정보를 검색할 음성 프로필

반환

  • VoiceProfileEnrollmentResult의 약속입니다.

상속된 메서드 세부 정보

enableTelemetry(boolean)

이 메서드는 원격 분석을 전역적으로 사용하거나 사용하지 않도록 설정합니다.

static function enableTelemetry(enabled: boolean)

매개 변수

enabled

boolean

원격 분석 컬렉션에 대한 전역 설정입니다. true로 설정하면 마이크 오류, 인식 오류와 같은 원격 분석 정보가 수집되어 Microsoft로 전송됩니다. false로 설정하면 원격 분석이 Microsoft로 전송되지 않습니다.

Recognizer.enableTelemetry에서 상속됨