VoiceProfileClient クラス

  • java.lang.Object
    • com.microsoft.cognitiveservices.speech.speaker.VoiceProfileClient

実装

java.lang.AutoCloseable

public final class VoiceProfileClient
implements java.lang.AutoCloseable

音声プロファイル クライアントは、話者認識の音声プロファイル管理を実行します。 注: オブジェクトが保持する基になるリソースを解放するには、close() を呼び出す必要があります。

コンストラクターの概要

コンストラクター 説明
VoiceProfileClient(SpeechConfig speechConfig)

音声プロファイル クライアントの新しいインスタンスを作成します。

メソッドの概要

修飾子と型 メソッドと説明
void close()

関連付けられているリソースを破棄します。

java.util.concurrent.Future<VoiceProfile> createProfileAsync(VoiceProfileType voiceProfileType, String locale)

非同期操作として音声プロファイルを作成します。

java.util.concurrent.Future<VoiceProfileResult> deleteProfileAsync(VoiceProfile voiceProfile)

音声プロファイルを非同期的に削除します。

java.util.concurrent.Future<VoiceProfileEnrollmentResult> enrollProfileAsync(VoiceProfile voiceProfile, AudioConfig audioConfig)

音声プロファイルを非同期に登録します。

java.util.concurrent.Future<VoiceProfilePhraseResult> getActivationPhrasesAsync(VoiceProfileType voiceProfileType, String locale)

登録の有効なアクティブ化フレーズを取得します。

java.util.concurrent.Future<java.util.List<VoiceProfile>> getAllProfilesAsync(VoiceProfileType voiceProfileType)

すべての音声プロファイルを非同期操作として取得します。

SafeHandle getImpl()

基になるネイティブ ハンドルを取得する内部メソッド。

PropertyCollection getProperties()

VoiceProfileClient に定義されているプロパティとその値のコレクション。

java.util.concurrent.Future<VoiceProfileResult> resetProfileAsync(VoiceProfile voiceProfile)

音声プロファイルを非同期的にリセットします。

java.util.concurrent.Future<VoiceProfileEnrollmentResult> retrieveEnrollmentResultAsync(VoiceProfile voiceProfile)

音声プロファイルを指定して登録結果を取得します。

メソッドの継承元: java.lang.Object

java.lang.Object.clone java.lang.Object.equals java.lang.Object.finalize java.lang.Object.getClass java.lang.Object.hashCode java.lang.Object.notify java.lang.Object.notifyAll java.lang.Object.toString java.lang.Object.wait java.lang.Object.wait java.lang.Object.wait

コンストラクターの詳細

VoiceProfileClient

public VoiceProfileClient(SpeechConfig speechConfig)

音声プロファイル クライアントの新しいインスタンスを作成します。

Parameters:

speechConfig - 音声構成。

メソッドの詳細

close

public void close()

関連付けられているリソースを破棄します。 注: オブジェクトが保持する基になるリソースを解放するには、close() を呼び出す必要があります。

createProfileAsync

public Future createProfileAsync(VoiceProfileType voiceProfileType, String locale)

非同期操作として音声プロファイルを作成します。

Parameters:

voiceProfileType - 音声プロファイルの種類。
locale - ロケール (例: "en-us")。

Returns:

音声プロファイルを作成した結果を表す非同期操作。

deleteProfileAsync

public Future deleteProfileAsync(VoiceProfile voiceProfile)

音声プロファイルを非同期的に削除します。

Parameters:

voiceProfile - 音声プロファイル。

Returns:

音声プロファイルを削除した結果を表す非同期操作。

enrollProfileAsync

public Future enrollProfileAsync(VoiceProfile voiceProfile, AudioConfig audioConfig)

音声プロファイルを非同期に登録します。

Parameters:

voiceProfile - 音声プロファイル。
audioConfig - オーディオ構成。

Returns:

音声プロファイルの登録の結果を表す非同期操作。

getActivationPhrasesAsync

public Future getActivationPhrasesAsync(VoiceProfileType voiceProfileType, String locale)

登録の有効なアクティブ化フレーズを取得します。

Parameters:

voiceProfileType - 音声プロファイルの種類。
locale - ロケール (例: "en-us")。

Returns:

アクティブ化フレーズを取得した結果を表す非同期操作。

getAllProfilesAsync

public Future<>> getAllProfilesAsync(VoiceProfileType voiceProfileType)

すべての音声プロファイルを非同期操作として取得します。

Parameters:

voiceProfileType - 音声プロファイルの種類。

Returns:

すべての音声プロファイルを取得した結果を表す非同期操作。

getImpl

public SafeHandle getImpl()

基になるネイティブ ハンドルを取得する内部メソッド。

Returns:

基になるオブジェクトへのネイティブ ハンドル。

getProperties

public PropertyCollection getProperties()

VoiceProfileClient に対して定義されているプロパティとその値のコレクション。

Returns:

VoiceProfileClient に対して定義されているプロパティとその値のコレクション。

resetProfileAsync

public Future resetProfileAsync(VoiceProfile voiceProfile)

音声プロファイルを非同期的にリセットします。

Parameters:

voiceProfile - 音声プロファイル。

Returns:

音声プロファイルをリセットした結果を表す非同期操作。

retrieveEnrollmentResultAsync

public Future retrieveEnrollmentResultAsync(VoiceProfile voiceProfile)

音声プロファイルを指定して登録結果を取得します。

Parameters:

voiceProfile - 音声プロファイル。

Returns:

音声プロファイルの登録の結果を表す非同期操作。

適用対象