RecognitionResult Class
- java.
lang. Object - com.
microsoft. cognitiveservices. speech. RecognitionResult
- com.
Implements
public class RecognitionResult
implements java.lang.AutoCloseable
Contains detailed information about result of a recognition operation.
Constructor Summary
| Modifier | Constructor | Description |
|---|---|---|
| protected | RecognitionResult(long result) |
Internal constructor for creating a Recognition |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| void |
close()
Explicitly frees any external resource attached to the object |
| java.math.BigInteger |
getDuration()
Duration of recognized speech in 100nsec increments. |
|
Safe |
getImpl()
Returns the recognition result implementation. |
| java.math.BigInteger |
getOffset()
Offset of recognized speech in 100nsec increments. |
|
Property |
getProperties()
The set of properties exposed in the result. |
|
Result |
getReason()
Specifies reason the result was created. |
| java.lang.String |
getResultId()
Specifies the result identifier. |
| java.lang.String |
getText()
Presents the recognized text in the result. |
Methods inherited from java.lang.Object
Constructor Details
RecognitionResult
protected RecognitionResult(long result)
Internal constructor for creating a RecognitionResult from a native handle.
Parameters:
Method Details
close
public void close()
Explicitly frees any external resource attached to the object
getDuration
public BigInteger getDuration()
Duration of recognized speech in 100nsec increments.
Returns:
getImpl
public SafeHandle getImpl()
Returns the recognition result implementation.
Returns:
getOffset
public BigInteger getOffset()
Offset of recognized speech in 100nsec increments.
Returns:
getProperties
public PropertyCollection getProperties()
The set of properties exposed in the result.
Returns:
getReason
public ResultReason getReason()
Specifies reason the result was created.
Returns:
getResultId
public String getResultId()
Specifies the result identifier.
Returns:
getText
public String getText()
Presents the recognized text in the result.
Returns:
Applies to
Azure SDK for Java