你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
SynthesisVoicesResult Class
- java.
lang. Object - com.
microsoft. cognitiveservices. speech. SynthesisVoicesResult
- com.
Implements
public class SynthesisVoicesResult
implements java.lang.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
Modifier | Constructor | Description |
---|---|---|
protected | SynthesisVoicesResult(IntRef result) |
PROTECTED |
Method Summary
Modifier and Type | Method and Description |
---|---|
void |
close()
Explicitly frees any external resource attached to the object |
java.lang.String |
getErrorDetails()
Gets the error details of the result. |
Safe |
getImpl()
Returns the synthesis result implementation. |
Property |
getProperties()
The set of properties exposed in the result. |
Result |
getReason()
Gets the reason the result was created. |
java.lang.String |
getResultId()
Gets the unique ID of the result. |
java.util.List<Voice |
getVoices()
Gets the retrieved voices list |
Methods inherited from java.lang.Object
Constructor Details
SynthesisVoicesResult
protected SynthesisVoicesResult(IntRef result)
PROTECTED
Parameters:
Method Details
close
public void close()
Explicitly frees any external resource attached to the object
getErrorDetails
public String getErrorDetails()
Gets the error details of the result.
Returns:
getImpl
public SafeHandle getImpl()
Returns the synthesis result implementation.
Returns:
getProperties
public PropertyCollection getProperties()
The set of properties exposed in the result.
Returns:
getReason
public ResultReason getReason()
Gets the reason the result was created.
Returns:
getResultId
public String getResultId()
Gets the unique ID of the result.
Returns:
getVoices
public List
Gets the retrieved voices list
Returns: