Class SynthesisVoicesResult
- java.lang.Object
-
- com.microsoft.cognitiveservices.speech.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 Summary
Constructors Modifier Constructor Description protectedSynthesisVoicesResult(IntRef result)PROTECTED
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()Explicitly frees any external resource attached to the objectStringgetErrorDetails()Gets the error details of the result.SafeHandlegetImpl()Returns the synthesis result implementation.PropertyCollectiongetProperties()The set of properties exposed in the result.ResultReasongetReason()Gets the reason the result was created.StringgetResultId()Gets the unique ID of the result.List<VoiceInfo>getVoices()Gets the retrieved voices list
-
-
-
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:
closein interfaceAutoCloseable
-
getImpl
public SafeHandle getImpl()
Returns the synthesis result implementation.- Returns:
- The implementation of the result.
-
-