VoiceProfileClient class

Konuşmacı Tanıma için VoiceProfileClient sınıfını tanımlar Ses Profili işlemleri için kullanıcıdan gelen işlemleri işler (ör. createProfile, deleteProfile)

Extends

Oluşturucular

VoiceProfileClient(SpeechConfig)

VoiceProfileClient oluşturucusu.

Özellikler

authorizationToken

Hizmetle iletişim kurmak için kullanılan yetkilendirme belirtecini alır.

internalData
properties

Bu VoiceProfileClient için tanımlanan özelliklerin ve değerlerinin koleksiyonu.

telemetryEnabled

Bu yöntem telemetri ayarının geçerli durumunu döndürür.

Devralınan Özellikler

sessionStarted

Oturum başlatılan olaylar için olay işleyicisini tanımlar.

sessionStopped

Oturum durdurulan olaylar için olay işleyicisini tanımlar.

speechEndDetected

Konuşma durdurulan olaylar için olay işleyicisini tanımlar.

speechStartDetected

Konuşma başlatılan olaylar için olay işleyicisini tanımlar.

Yöntemler

close()

Nesneyi temizleme ve temel alınan bağlantıyı kapatma

createProfileAsync(VoiceProfileType, string)

Konuşmacı tanıma ses profili oluşturma

deleteProfileAsync(VoiceProfile)

Konuşmacı tanıma ses profilini silme

enrollProfileAsync(VoiceProfile, AudioConfig)

Konuşmacı tanıma ses profili oluşturma

getActivationPhrasesAsync(VoiceProfileType, string)

Ses profili kaydı için geçerli yetkilendirme tümcecikleri alma

getAllProfilesAsync(VoiceProfileType)

Verilen ses profili türüne sahip hesapta tüm ses profillerini alma

resetProfileAsync(VoiceProfile)

Konuşmacı tanıma ses profili için tüm kayıtları kaldırma

retrieveEnrollmentResultAsync(VoiceProfile)

Ses profilinin güncel bilgilerini alma

Devralınan Yöntemler

enableTelemetry(boolean)

Bu yöntem telemetriyi genel olarak etkinleştirir veya devre dışı bırakır.

Oluşturucu Ayrıntıları

VoiceProfileClient(SpeechConfig)

VoiceProfileClient oluşturucusu.

new VoiceProfileClient(speechConfig: SpeechConfig)

Parametreler

speechConfig
SpeechConfig

Bu synthesizer için bir dizi ilk özellik (kimlik doğrulama anahtarı, bölge, &c)

Özellik Ayrıntıları

authorizationToken

Hizmetle iletişim kurmak için kullanılan yetkilendirme belirtecini alır.

string authorizationToken

Özellik Değeri

string

Yetkilendirme belirteci.

internalData

object internalData

Özellik Değeri

object

properties

Bu VoiceProfileClient için tanımlanan özelliklerin ve değerlerinin koleksiyonu.

PropertyCollection properties

Özellik Değeri

Bu VoiceProfileClient için tanımlanan özelliklerin ve değerlerinin koleksiyonu.

telemetryEnabled

Bu yöntem telemetri ayarının geçerli durumunu döndürür.

static boolean telemetryEnabled

Özellik Değeri

boolean

telemetri etkinse true, aksi takdirde false.

Devralınan Özellik Detayları

sessionStarted

Oturum başlatılan olaylar için olay işleyicisini tanımlar.

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

Özellik Değeri

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

Recognizer.sessionStarted'dan Devralındı

sessionStopped

Oturum durdurulan olaylar için olay işleyicisini tanımlar.

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

Özellik Değeri

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

Recognizer.sessionStopped'tanDevralındı

speechEndDetected

Konuşma durdurulan olaylar için olay işleyicisini tanımlar.

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

Özellik Değeri

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

Recognizer.speechEnd'den Devralındı Algılandı

speechStartDetected

Konuşma başlatılan olaylar için olay işleyicisini tanımlar.

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

Özellik Değeri

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

Recognizer.speechStart'tan Devralındı Algılandı

Yöntem Ayrıntıları

close()

Nesneyi temizleme ve temel alınan bağlantıyı kapatma

function close(): Promise<void>

Döndürülenler

Promise<void>

createProfileAsync(VoiceProfileType, string)

Konuşmacı tanıma ses profili oluşturma

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

Parametreler

profileType
VoiceProfileType

Oluşturulacak Ses Profili türü

lang

string

Ses Profili için dil dizesi (yerel ayar)

Döndürülenler

Promise<VoiceProfile>

  • VoiceProfile sözü.

deleteProfileAsync(VoiceProfile)

Konuşmacı tanıma ses profilini silme

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

Parametreler

profile
VoiceProfile

Silinecek Ses Profili

Döndürülenler

  • VoiceProfileResult sözü.

enrollProfileAsync(VoiceProfile, AudioConfig)

Konuşmacı tanıma ses profili oluşturma

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

Parametreler

profile
VoiceProfile

Kayıt oluşturmak için Ses Profili

audioConfig
AudioConfig

kaydın oluşturulacağı kaynak bilgileri

Döndürülenler

  • VoiceProfileEnrollmentResult sözü.

getActivationPhrasesAsync(VoiceProfileType, string)

Ses profili kaydı için geçerli yetkilendirme tümcecikleri alma

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

Parametreler

profileType
VoiceProfileType

Için etkinleştirme tümceciklerini almak için Profil Türü

lang

string

Ses Profili için dil dizesi (yerel ayar)

Döndürülenler

getAllProfilesAsync(VoiceProfileType)

Verilen ses profili türüne sahip hesapta tüm ses profillerini alma

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

Parametreler

profileType
VoiceProfileType

profillerin listelendiği profil türü (tanımlama/doğrulama)

Döndürülenler

  • VoiceProfileEnrollmentResults dizisinin sözü.

resetProfileAsync(VoiceProfile)

Konuşmacı tanıma ses profili için tüm kayıtları kaldırma

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

Parametreler

profile
VoiceProfile

Sıfırlanacak Ses Profili

Döndürülenler

  • VoiceProfileResult sözü.

retrieveEnrollmentResultAsync(VoiceProfile)

Ses profilinin güncel bilgilerini alma

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

Parametreler

profile
VoiceProfile

Için bilgi alınacak Ses Profili

Döndürülenler

  • VoiceProfileEnrollmentResult sözü.

Devralınan Yöntemin Ayrıntıları

enableTelemetry(boolean)

Bu yöntem telemetriyi genel olarak etkinleştirir veya devre dışı bırakır.

static function enableTelemetry(enabled: boolean)

Parametreler

enabled

boolean

Telemetri koleksiyonu için genel ayar. True olarak ayarlanırsa mikrofon hataları, tanıma hataları gibi telemetri bilgileri toplanır ve Microsoft'a gönderilir. false olarak ayarlanırsa Microsoft'a telemetri gönderilmez.

Recognizer.enableTelemetry'denDevralındı