Partager via


SpeakerRecognitionResult Class

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

Implements

java.lang.AutoCloseable

public final class SpeakerRecognitionResult
implements java.lang.AutoCloseable

Defines result of speaker recognition.

Method Summary

Modifier and Type Method and Description
void close()

Explicitly frees any external resource attached to the object

SafeHandle getImpl()

Returns the speaker recognition result implementation.

java.lang.String getProfileId()

Presents the recognized profile id.

PropertyCollection getProperties()

The set of properties exposed in the result.

ResultReason getReason()

Specifies status of speaker recognition result.

java.lang.String getResultId()

Presents the result identifier.

java.lang.Double getScore()

Presents the similarity score of the recognized speaker.

java.lang.String toString()

Returns a String that represents the speaker recognition result.

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()

Explicitly frees any external resource attached to the object

getImpl

public SafeHandle getImpl()

Returns the speaker recognition result implementation.

Returns:

The implementation of the result.

getProfileId

public String getProfileId()

Presents the recognized profile id.

Returns:

The profile identifier.

getProperties

public PropertyCollection getProperties()

The set of properties exposed in the result.

Returns:

The set of properties exposed in the result.

getReason

public ResultReason getReason()

Specifies status of speaker recognition result.

Returns:

The reason of the result.

getResultId

public String getResultId()

Presents the result identifier.

Returns:

The result identifier.

getScore

public Double getScore()

Presents the similarity score of the recognized speaker. The score is a float number indicating the similarity between input audio and targeted voice profile.This number is between 0 and 1. A higher number means higher similarity.

Returns:

The similarity score of the recognized speaker.

toString

public String toString()

Returns a String that represents the speaker recognition result.

Overrides:

SpeakerRecognitionResult.toString()

Returns:

A String that represents the speaker recognition result.

Applies to