Freigeben über


SpeakerVerificationModel Class

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

Implements

java.lang.AutoCloseable

public class SpeakerVerificationModel
implements java.lang.AutoCloseable

Represents the speaker verification model used for speaker recognition. Note: close() must be called in order to release underlying resources held by the object.

Method Summary

Modifier and Type Method and Description
void close()

Dispose of associated resources.

static SpeakerVerificationModel fromProfile(VoiceProfile profile)

Creates a speaker verification model from a voice profile.

SafeHandle getImpl()

Returns the speaker verification model.

Methods inherited from 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

Method Details

close

public void close()

Dispose of associated resources.

fromProfile

public static SpeakerVerificationModel fromProfile(VoiceProfile profile)

Creates a speaker verification model from a voice profile.

Parameters:

profile - A voice profile.

Returns:

The speaker verification model being created.

getImpl

public SafeHandle getImpl()

Returns the speaker verification model.

Returns:

The implementation of the model.

Applies to