Class SynthesisVoicesResult

  • All Implemented Interfaces:
    AutoCloseable

    public class SynthesisVoicesResult
    extends Object
    implements AutoCloseable
    Contains detailed information about the retrieved synthesis voices list. Note: close() must be called in order to release underlying resources held by the object. Added in version 1.16.0
    • Constructor Detail

      • SynthesisVoicesResult

        protected SynthesisVoicesResult​(IntRef result)
        PROTECTED
        Parameters:
        result - PROTECTED
    • Method Detail

      • getVoices

        public List<VoiceInfo> getVoices()
        Gets the retrieved voices list
        Returns:
        The voices list
      • getResultId

        public String getResultId()
        Gets the unique ID of the result.
        Returns:
        The unique ID of the result.
      • getReason

        public ResultReason getReason()
        Gets the reason the result was created.
        Returns:
        The reason of the result.
      • getErrorDetails

        public String getErrorDetails()
        Gets the error details of the result.
        Returns:
        The error details.
      • getProperties

        public PropertyCollection getProperties()
        The set of properties exposed in the result.
        Returns:
        The set of properties exposed in the result.
      • 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 synthesis result implementation.
        Returns:
        The implementation of the result.