Class SpeakerRecognitionResult
- java.lang.Object
-
- com.microsoft.cognitiveservices.speech.speaker.SpeakerRecognitionResult
-
- All Implemented Interfaces:
AutoCloseable
public final class SpeakerRecognitionResult extends Object implements AutoCloseable
Defines result of speaker recognition.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()Explicitly frees any external resource attached to the objectSafeHandlegetImpl()Returns the speaker recognition result implementation.StringgetProfileId()Presents the recognized profile id.PropertyCollectiongetProperties()The set of properties exposed in the result.ResultReasongetReason()Specifies status of speaker recognition result.StringgetResultId()Presents the result identifier.DoublegetScore()Presents the similarity score of the recognized speaker.StringtoString()Returns a String that represents the speaker recognition result.
-
-
-
Method Detail
-
getResultId
public String getResultId()
Presents the result identifier.- Returns:
- The result identifier.
-
getReason
public ResultReason getReason()
Specifies status of speaker recognition result.- Returns:
- The reason of the result.
-
getProfileId
public String getProfileId()
Presents the recognized profile id.- Returns:
- The profile 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.
-
getProperties
public PropertyCollection getProperties()
The set of properties exposed in the result.- Returns:
- The set of properties exposed in the result.
-
close
public void close()
Explicitly frees any external resource attached to the object- Specified by:
closein interfaceAutoCloseable
-
toString
public String toString()
Returns a String that represents the speaker recognition result.
-
getImpl
public SafeHandle getImpl()
Returns the speaker recognition result implementation.- Returns:
- The implementation of the result.
-
-