VoiceProfile Class

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

Implements

java.lang.AutoCloseable

public final class VoiceProfile
implements java.lang.AutoCloseable

A VoiceProfile represents a speaker's uniqueness in his/her voice. Note: close() must be called in order to release underlying resources held by the object.

Constructor Summary

Constructor Description
VoiceProfile(String id, VoiceProfileType type)

Initializes a new instance of Voice Profile.

VoiceProfile(long handle)

Initializes a new instance of Voice Profile.

Method Summary

Modifier and Type Method and Description
void close()

Explicitly frees any external resource attached to the object

java.lang.String getId()

Get a voice profile id.

SafeHandle getImpl()

Returns the voice profile implementation.

VoiceProfileType getType()

Get a voice profile type.

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

Constructor Details

VoiceProfile

public VoiceProfile(String id, VoiceProfileType type)

Initializes a new instance of Voice Profile.

Parameters:

id - An unique id.
type - A type of the Voice Profile.

VoiceProfile

public VoiceProfile(long handle)

Initializes a new instance of Voice Profile.

Parameters:

handle - handle to the VoiceProfile.

Method Details

close

public void close()

Explicitly frees any external resource attached to the object

getId

public String getId()

Get a voice profile id.

Returns:

The voice profile id.

getImpl

public SafeHandle getImpl()

Returns the voice profile implementation.

Returns:

The implementation handle.

getType

public VoiceProfileType getType()

Get a voice profile type.

Returns:

The voice profile type.

Applies to