VoiceProfileClient class
Menentukan kelas VoiceProfileClient untuk operasi Pengenalan Pembicara Menangani dari pengguna untuk operasi Profil Suara (misalnya createProfile, deleteProfile)
- Extends
Konstruktor
Voice |
Konstruktor VoiceProfileClient. |
Properti
authorization |
Mendapatkan token otorisasi yang digunakan untuk berkomunikasi dengan layanan. |
internal |
|
properties | Kumpulan properti dan nilainya ditentukan untuk VoiceProfileClient ini. |
telemetry |
Metode ini mengembalikan status pengaturan telemetri saat ini. |
Properti yang Diwariskan
session |
Menentukan penanganan aktivitas untuk peristiwa yang dimulai sesi. |
session |
Menentukan penanganan aktivitas untuk peristiwa yang dihentikan sesi. |
speech |
Menentukan penanganan aktivitas untuk peristiwa ucapan yang dihentikan. |
speech |
Menentukan penanganan aktivitas untuk peristiwa yang dimulai ucapan. |
Metode
close() | Bersihkan objek dan tutup koneksi yang mendasar |
create |
Membuat profil suara pengenalan pembicara |
delete |
Menghapus profil suara pengenalan pembicara |
enroll |
Membuat profil suara pengenalan pembicara |
get |
Mendapatkan frasa otorisasi yang valid untuk pendaftaran profil suara |
get |
Mendapatkan semua profil suara di akun dengan jenis profil suara yang diberikan |
reset |
Menghapus semua pendaftaran untuk profil suara pengenalan pembicara |
retrieve |
Mendapatkan informasi profil suara saat ini |
Metode yang Diwarisi
enable |
Metode ini secara global mengaktifkan atau menonaktifkan telemetri. |
Detail Konstruktor
VoiceProfileClient(SpeechConfig)
Konstruktor VoiceProfileClient.
new VoiceProfileClient(speechConfig: SpeechConfig)
Parameter
- speechConfig
- SpeechConfig
Sekumpulan properti awal untuk synthesizer ini (kunci autentikasi, wilayah, &c)
Detail Properti
authorizationToken
Mendapatkan token otorisasi yang digunakan untuk berkomunikasi dengan layanan.
string authorizationToken
Nilai Properti
string
Token otorisasi.
internalData
object internalData
Nilai Properti
object
properties
Kumpulan properti dan nilainya ditentukan untuk VoiceProfileClient ini.
PropertyCollection properties
Nilai Properti
Kumpulan properti dan nilainya ditentukan untuk VoiceProfileClient ini.
telemetryEnabled
Metode ini mengembalikan status pengaturan telemetri saat ini.
static boolean telemetryEnabled
Nilai Properti
boolean
true jika telemetri diaktifkan, salah jika tidak.
Detail Properti yang Diwariskan
sessionStarted
Menentukan penanganan aktivitas untuk peristiwa yang dimulai sesi.
public sessionStarted: (sender: Recognizer, event: SessionEventArgs) => void
Nilai Properti
(sender: Recognizer, event: SessionEventArgs) => void
Diwarisi DariRecognizer.sessionStarted
sessionStopped
Menentukan penanganan aktivitas untuk peristiwa yang dihentikan sesi.
public sessionStopped: (sender: Recognizer, event: SessionEventArgs) => void
Nilai Properti
(sender: Recognizer, event: SessionEventArgs) => void
Diwarisi DariRecognizer.sessionStopped
speechEndDetected
Menentukan penanganan aktivitas untuk peristiwa ucapan yang dihentikan.
public speechEndDetected: (sender: Recognizer, event: RecognitionEventArgs) => void
Nilai Properti
(sender: Recognizer, event: RecognitionEventArgs) => void
Diwarisi DariRecognizer.speechEndDetected
speechStartDetected
Menentukan penanganan aktivitas untuk peristiwa yang dimulai ucapan.
public speechStartDetected: (sender: Recognizer, event: RecognitionEventArgs) => void
Nilai Properti
(sender: Recognizer, event: RecognitionEventArgs) => void
Diwarisi DariRecognizer.speechStartDetected
Detail Metode
close()
Bersihkan objek dan tutup koneksi yang mendasar
function close(): Promise<void>
Mengembalikan
Promise<void>
createProfileAsync(VoiceProfileType, string)
Membuat profil suara pengenalan pembicara
function createProfileAsync(profileType: VoiceProfileType, lang: string): Promise<VoiceProfile>
Parameter
- profileType
- VoiceProfileType
Jenis Profil Suara yang akan dibuat
- lang
-
string
String bahasa (lokal) untuk Profil Suara
Mengembalikan
Promise<VoiceProfile>
- Janji VoiceProfile.
deleteProfileAsync(VoiceProfile)
Menghapus profil suara pengenalan pembicara
function deleteProfileAsync(profile: VoiceProfile): Promise<VoiceProfileResult>
Parameter
- profile
- VoiceProfile
Profil Suara yang akan dihapus
Mengembalikan
Promise<VoiceProfileResult>
- Janji VoiceProfileResult.
enrollProfileAsync(VoiceProfile, AudioConfig)
Membuat profil suara pengenalan pembicara
function enrollProfileAsync(profile: VoiceProfile, audioConfig: AudioConfig): Promise<VoiceProfileEnrollmentResult>
Parameter
- profile
- VoiceProfile
Profil Suara untuk membuat pendaftaran
- audioConfig
- AudioConfig
info sumber untuk membuat pendaftaran
Mengembalikan
Promise<VoiceProfileEnrollmentResult>
- Janji VoiceProfileEnrollmentResult.
getActivationPhrasesAsync(VoiceProfileType, string)
Mendapatkan frasa otorisasi yang valid untuk pendaftaran profil suara
function getActivationPhrasesAsync(profileType: VoiceProfileType, lang: string): Promise<VoiceProfilePhraseResult>
Parameter
- profileType
- VoiceProfileType
Jenis Profil untuk mendapatkan frasa aktivasi untuk
- lang
-
string
String bahasa (lokal) untuk Profil Suara
Mengembalikan
Promise<VoiceProfilePhraseResult>
getAllProfilesAsync(VoiceProfileType)
Mendapatkan semua profil suara di akun dengan jenis profil suara yang diberikan
function getAllProfilesAsync(profileType: VoiceProfileType): Promise<VoiceProfileEnrollmentResult[]>
Parameter
- profileType
- VoiceProfileType
jenis profil (identifikasi/verifikasi) yang akan mencantumkan profil
Mengembalikan
Promise<VoiceProfileEnrollmentResult[]>
- Janji array VoiceProfileEnrollmentResults.
resetProfileAsync(VoiceProfile)
Menghapus semua pendaftaran untuk profil suara pengenalan pembicara
function resetProfileAsync(profile: VoiceProfile): Promise<VoiceProfileResult>
Parameter
- profile
- VoiceProfile
Profil Suara yang akan direset
Mengembalikan
Promise<VoiceProfileResult>
- Janji VoiceProfileResult.
retrieveEnrollmentResultAsync(VoiceProfile)
Mendapatkan informasi profil suara saat ini
function retrieveEnrollmentResultAsync(profile: VoiceProfile): Promise<VoiceProfileEnrollmentResult>
Parameter
- profile
- VoiceProfile
Profil Suara untuk mengambil info
Mengembalikan
Promise<VoiceProfileEnrollmentResult>
- Janji VoiceProfileEnrollmentResult.
Detail Metode yang Diwarisi
enableTelemetry(boolean)
Metode ini secara global mengaktifkan atau menonaktifkan telemetri.
static function enableTelemetry(enabled: boolean)
Parameter
- enabled
-
boolean
Pengaturan global untuk pengumpulan telemetri. Jika diatur ke true, informasi telemetri seperti kesalahan mikrofon, kesalahan pengenalan dikumpulkan dan dikirim ke Microsoft. Jika diatur ke false, tidak ada telemetri yang dikirim ke Microsoft.
Diwarisi DariRecognizer.enableTelemetry