VoiceProfileEnrollmentResult Class

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

Implements

java.lang.AutoCloseable

public final class VoiceProfileEnrollmentResult
implements java.lang.AutoCloseable

Defines result of voice profile enrollment.

Method Summary

Modifier and Type Method and Description
void close()

Explicitly frees any external resource attached to the object

java.math.BigInteger getAudioLength()

This enrollment audio length in hundred nanoseconds.

java.math.BigInteger getAudioSpeechLength()

This enrollment audio pure speech(which is the amount of audio after removing silence and non - speech segments) length in hundred nanoseconds.

java.lang.String getCreatedTime()

A textual representation of the created time of the voice profile.

int getEnrollmentsCount()

The number of enrollment audios accepted for this profile.

java.math.BigInteger getEnrollmentsLength()

The total length of enrollment audios accepted for this profile in hundred nanoseconds.

java.math.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.

SafeHandle getImpl()

Returns the voice enrollment result implementation.

java.lang.String getLastUpdatedDateTime()

A textual representation of the last updated time of the voice profile.

java.lang.String getProfileId()

Presents the profile id in the enrollment result.

PropertyCollection getProperties()

The set of properties exposed in the result.

ResultReason getReason()

Specifies status of enrollment result.

int getRemainingEnrollmentsCount()

The number of enrollments needed to complete profile enrollment.

java.math.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.

java.lang.String getResultId()

Presents the result identifier.

java.lang.String toString()

Returns a String that represents the voice enrollment 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

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.

getCreatedTime

public String getCreatedTime()

A textual representation of the created time of the voice profile.

Returns:

The created time of the voice profile.

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.

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.

getImpl

public SafeHandle getImpl()

Returns the voice enrollment result implementation.

Returns:

The implementation of the result.

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.

getProfileId

public String getProfileId()

Presents the profile id in the enrollment result.

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 enrollment result.

Returns:

The reason of the result.

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.

getResultId

public String getResultId()

Presents the result identifier.

Returns:

The result identifier.

toString

public String toString()

Returns a String that represents the voice enrollment result.

Overrides:

VoiceProfileEnrollmentResult.toString()

Returns:

A String that represents the voice enrollment result.

Applies to