SpeechSynthesisCancellationDetails Class
Definition
Contains detailed information about why a speech synthesis was canceled. Added in version 1.7.0
public class SpeechSynthesisCancellationDetails
- Inheritance
-
java.lang.ObjectSpeechSynthesisCancellationDetails
Methods
| close() |
Explicitly frees any external resource attached to the object |
| fromResult(SpeechSynthesisResult result) |
Creates an instance of SpeechSynthesisCancellationDetails object for the canceled SpeechSynthesisResult. |
| fromStream(AudioDataStream stream) |
Creates an instance of SpeechSynthesisCancellationDetails object for the canceled AudioDataStream. |
| getErrorCode() |
The error code in case of an unsuccessful recognition (when getReason() returns Error). Added in version 1.1.0. |
| getErrorDetails() |
The error message in case of an unsuccessful recognition (when getReason() returns Error). |
| getReason() |
The reason the recognition was canceled. |
| toString() |
Returns a String that represents the cancellation details. |