Freigeben über


SpeakerIdentificationModel Class

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

Implements

java.lang.AutoCloseable

public class SpeakerIdentificationModel
implements java.lang.AutoCloseable

Represents the speaker identification 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 SpeakerIdentificationModel fromProfiles(List<VoiceProfile> profiles)

Creates a speaker identification model from the voice profiles.

SafeHandle getImpl()

Returns the speaker identification 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.

fromProfiles

public static SpeakerIdentificationModel fromProfiles(List profiles)

Creates a speaker identification model from the voice profiles.

Parameters:

profiles - A collection of voice profiles.

Returns:

The speaker identification model being created.

getImpl

public SafeHandle getImpl()

Returns the speaker identification model.

Returns:

The implementation of the model.

Applies to