Class VoiceProfile
- java.lang.Object
-
- com.microsoft.cognitiveservices.speech.speaker.VoiceProfile
-
- All Implemented Interfaces:
AutoCloseable
public final class VoiceProfile extends Object implements 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
Constructors Constructor Description VoiceProfile(long handle)Initializes a new instance of Voice Profile.VoiceProfile(String id, VoiceProfileType type)Initializes a new instance of Voice Profile.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()Explicitly frees any external resource attached to the objectStringgetId()Get a voice profile id.SafeHandlegetImpl()Returns the voice profile implementation.VoiceProfileTypegetType()Get a voice profile type.
-
-
-
Constructor Detail
-
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 Detail
-
getId
public String getId()
Get a voice profile id.- Returns:
- The voice profile id.
-
getType
public VoiceProfileType getType()
Get a voice profile type.- Returns:
- The voice profile type.
-
close
public void close()
Explicitly frees any external resource attached to the object- Specified by:
closein interfaceAutoCloseable
-
getImpl
public SafeHandle getImpl()
Returns the voice profile implementation.- Returns:
- The implementation handle.
-
-