Class VoiceProfileEnrollmentResult
- java.lang.Object
-
- com.microsoft.cognitiveservices.speech.speaker.VoiceProfileEnrollmentResult
-
- All Implemented Interfaces:
AutoCloseable
public final class VoiceProfileEnrollmentResult extends Object implements AutoCloseable
Defines result of voice profile enrollment.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()Explicitly frees any external resource attached to the objectBigIntegergetAudioLength()This enrollment audio length in hundred nanoseconds.BigIntegergetAudioSpeechLength()This enrollment audio pure speech(which is the amount of audio after removing silence and non - speech segments) length in hundred nanoseconds.StringgetCreatedTime()A textual representation of the created time of the voice profile.intgetEnrollmentsCount()The number of enrollment audios accepted for this profile.BigIntegergetEnrollmentsLength()The total length of enrollment audios accepted for this profile in hundred nanoseconds.BigIntegergetEnrollmentsSpeechLength()The summation of pure speech(which is the amount of audio after removing silence and non - speech segments) across all profile enrollments in hundred nanoseconds.SafeHandlegetImpl()Returns the voice enrollment result implementation.StringgetLastUpdatedDateTime()A textual representation of the last updated time of the voice profile.StringgetProfileId()Presents the profile id in the enrollment result.PropertyCollectiongetProperties()The set of properties exposed in the result.ResultReasongetReason()Specifies status of enrollment result.intgetRemainingEnrollmentsCount()The number of enrollments needed to complete profile enrollment.BigIntegergetRemainingEnrollmentsSpeechLength()The amount of pure speech (which is the amount of audio after removing silence and non-speech segments) needed to complete profile enrollment in hundred nanoseconds.StringgetResultId()Presents the result identifier.StringtoString()Returns a String that represents the voice enrollment result.
-
-
-
Method Detail
-
getResultId
public String getResultId()
Presents the result identifier.- Returns:
- The result identifier.
-
getReason
public ResultReason getReason()
Specifies status of enrollment result.- Returns:
- The reason of the result.
-
getProfileId
public String getProfileId()
Presents the profile id in the enrollment result.- Returns:
- The profile identifier.
-
getEnrollmentsCount
public int getEnrollmentsCount()
The number of enrollment audios accepted for this profile.- Returns:
- The number of enrollment audios accepted for this profile.
-
getEnrollmentsLength
public BigInteger getEnrollmentsLength()
The total length of enrollment audios accepted for this profile in hundred nanoseconds.- Returns:
- The total length of enrollment audios accepted for this profile in hundred nanoseconds.
-
getRemainingEnrollmentsCount
public int getRemainingEnrollmentsCount()
The number of enrollments needed to complete profile enrollment.- Returns:
- The number of enrollments needed to complete profile enrollment.
-
getRemainingEnrollmentsSpeechLength
public BigInteger getRemainingEnrollmentsSpeechLength()
The amount of pure speech (which is the amount of audio after removing silence and non-speech segments) needed to complete profile enrollment in hundred nanoseconds.- Returns:
- The remaining length of speech required to complete enrollment.
-
getAudioLength
public BigInteger getAudioLength()
This enrollment audio length in hundred nanoseconds.- Returns:
- The audio length of this enrollment in hundred nanoseconds.
-
getAudioSpeechLength
public BigInteger getAudioSpeechLength()
This enrollment audio pure speech(which is the amount of audio after removing silence and non - speech segments) length in hundred nanoseconds.- Returns:
- The audio length of this enrollment in hundred nanoseconds.
-
getEnrollmentsSpeechLength
public BigInteger getEnrollmentsSpeechLength()
The summation of pure speech(which is the amount of audio after removing silence and non - speech segments) across all profile enrollments in hundred nanoseconds.- Returns:
- The sum of speech across all enrollments.
-
getProperties
public PropertyCollection getProperties()
The set of properties exposed in the result.- Returns:
- The set of properties exposed in the result.
-
getCreatedTime
public String getCreatedTime()
A textual representation of the created time of the voice profile.- Returns:
- The created time of the voice profile.
-
getLastUpdatedDateTime
public String getLastUpdatedDateTime()
A textual representation of the last updated time of the voice profile.- Returns:
- The last updated time of the voice profile.
-
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 voice enrollment result.
-
getImpl
public SafeHandle getImpl()
Returns the voice enrollment result implementation.- Returns:
- The implementation of the result.
-
-