Class 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 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:
        close in interface AutoCloseable
      • getImpl

        public SafeHandle getImpl()
        Returns the voice profile implementation.
        Returns:
        The implementation handle.