你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
SpeakerRecognitionResult Class
- java.
lang. Object - com.
microsoft. cognitiveservices. speech. speaker. SpeakerRecognitionResult
- com.
Implements
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 |
Safe |
getImpl()
Returns the speaker recognition result implementation. |
java.lang.String |
getProfileId()
Presents the recognized profile id. |
Property |
getProperties()
The set of properties exposed in the result. |
Result |
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
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:
getProfileId
public String getProfileId()
Presents the recognized profile id.
Returns:
getProperties
public PropertyCollection getProperties()
The set of properties exposed in the result.
Returns:
getReason
public ResultReason getReason()
Specifies status of speaker recognition result.
Returns:
getResultId
public String getResultId()
Presents the result identifier.
Returns:
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:
toString
public String toString()
Returns a String that represents the speaker recognition result.
Overrides:
SpeakerRecognitionResult.toString()Returns: