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
Voice |
VoiceProfileClient oluşturucusu. |
Özellikler
authorization |
Hizmetle iletişim kurmak için kullanılan yetkilendirme belirtecini alır. |
internal |
|
properties | Bu VoiceProfileClient için tanımlanan özelliklerin ve değerlerinin koleksiyonu. |
telemetry |
Bu yöntem telemetri ayarının geçerli durumunu döndürür. |
Devralınan Özellikler
session |
Oturum başlatılan olaylar için olay işleyicisini tanımlar. |
session |
Oturum durdurulan olaylar için olay işleyicisini tanımlar. |
speech |
Konuşma durdurulan olaylar için olay işleyicisini tanımlar. |
speech |
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 |
create |
Konuşmacı tanıma ses profili oluşturma |
delete |
Konuşmacı tanıma ses profilini silme |
enroll |
Konuşmacı tanıma ses profili oluşturma |
get |
Ses profili kaydı için geçerli yetkilendirme tümcecikleri alma |
get |
Verilen ses profili türüne sahip hesapta tüm ses profillerini alma |
reset |
Konuşmacı tanıma ses profili için tüm kayıtları kaldırma |
retrieve |
Ses profilinin güncel bilgilerini alma |
Devralınan Yöntemler
enable |
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
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
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
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
Promise<VoiceProfileResult>
- 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
Promise<VoiceProfileEnrollmentResult>
- 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
Promise<VoiceProfilePhraseResult>
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
Promise<VoiceProfileEnrollmentResult[]>
- 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
Promise<VoiceProfileResult>
- 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
Promise<VoiceProfileEnrollmentResult>
- 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ı