VoiceProfileClient class

Speaker Recognition の VoiceProfileClient クラスを定義します。音声プロファイル操作 (createProfile、deleteProfile など) のユーザーからの操作を処理します。

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 の Promise。

deleteProfileAsync(VoiceProfile)

話者認識の音声プロファイルを削除する

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

パラメーター

profile
VoiceProfile

削除する音声プロファイル

戻り値

  • VoiceProfileResult の Promise。

enrollProfileAsync(VoiceProfile, AudioConfig)

話者認識の音声プロファイルを作成する

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

パラメーター

profile
VoiceProfile

登録を作成する音声プロファイル

audioConfig
AudioConfig

登録の作成元となるソース情報

戻り値

  • VoiceProfileEnrollmentResult の Promise。

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 の配列の Promise。

resetProfileAsync(VoiceProfile)

話者認識音声プロファイルのすべての登録を削除する

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

パラメーター

profile
VoiceProfile

リセットする音声プロファイル

戻り値

  • VoiceProfileResult の Promise。

retrieveEnrollmentResultAsync(VoiceProfile)

音声プロファイルの現在の情報を取得する

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

パラメーター

profile
VoiceProfile

情報を取得する音声プロファイル

戻り値

  • VoiceProfileEnrollmentResult の Promise。

継承済みメソッドの詳細

enableTelemetry(boolean)

このメソッドは、テレメトリをグローバルに有効または無効にします。

static function enableTelemetry(enabled: boolean)

パラメーター

enabled

boolean

テレメトリ収集のグローバル設定。 true に設定すると、マイク エラー、認識エラーなどのテレメトリ情報が収集され、Microsoft に送信されます。 false に設定すると、テレメトリは Microsoft に送信されません。

Recognizer.enableTelemetryから継承