VoiceProfile Class
- java.
lang. Object - com.
microsoft. cognitiveservices. speech. speaker. VoiceProfile
- com.
Implements
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. |
Safe |
getImpl()
Returns the voice profile implementation. |
Voice |
getType()
Get a voice profile type. |
Methods inherited from java.lang.Object
Constructor Details
VoiceProfile
public VoiceProfile(String id, VoiceProfileType type)
Initializes a new instance of Voice Profile.
Parameters:
VoiceProfile
public VoiceProfile(long handle)
Initializes a new instance of Voice Profile.
Parameters:
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:
getImpl
public SafeHandle getImpl()
Returns the voice profile implementation.
Returns:
getType
public VoiceProfileType getType()
Get a voice profile type.
Returns: