SpeechSynthesisResult Class
- java.
lang. Object - com.
microsoft. cognitiveservices. speech. SpeechSynthesisResult
- com.
Implements
public class SpeechSynthesisResult
implements java.lang.AutoCloseable
Contains detailed information about result of a speech synthesis operation. Note: close() must be called in order to release underlying resources held by the object. Added in version 1.7.0
Constructor Summary
Modifier | Constructor | Description |
---|---|---|
protected | SpeechSynthesisResult(IntRef result) |
PROTECTED |
Method Summary
Modifier and Type | Method and Description |
---|---|
void |
close()
Explicitly frees any external resource attached to the object |
byte[] |
getAudioData()
Gets the synthesized audio from the result. |
long |
getAudioDuration()
Gets the time duration of synthesized audio, by ticks (100ns). |
long |
getAudioLength()
Gets the size of synthesized audio in bytes. |
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. |
Methods inherited from java.lang.Object
Constructor Details
SpeechSynthesisResult
protected SpeechSynthesisResult(IntRef result)
PROTECTED
Parameters:
Method Details
close
public void close()
Explicitly frees any external resource attached to the object
getAudioData
public byte[] getAudioData()
Gets the synthesized audio from the result.
Returns:
getAudioDuration
public long getAudioDuration()
Gets the time duration of synthesized audio, by ticks (100ns). Only valid for completed synthesis.
Returns:
getAudioLength
public long getAudioLength()
Gets the size of synthesized audio in bytes.
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:
Applies to
Azure SDK for Java
Feedback
https://aka.ms/ContentUserFeedback.
Binnenkort beschikbaar: In de loop van 2024 zullen we GitHub-problemen geleidelijk uitfaseren als het feedbackmechanisme voor inhoud en deze vervangen door een nieuw feedbacksysteem. Zie voor meer informatie:Feedback verzenden en weergeven voor