public class SpokestackASRResponse extends Object
Modifier and Type | Class and Description |
---|---|
static class |
SpokestackASRResponse.Hypothesis
Data class for a single ASR hypothesis.
|
Modifier and Type | Field and Description |
---|---|
String |
error
error message from server (if status is "error").
|
SpokestackASRResponse.Hypothesis[] |
hypotheses
n-best list of transcripts and confidences (the value of n is determined
by the client).
|
boolean |
isFinal
does the hypothesis represent the full transcript for the transmitted
audio?
|
String |
status
server status: "ok" or "error".
|
Constructor and Description |
---|
SpokestackASRResponse(String serverStatus,
String err,
boolean finalResponse,
SpokestackASRResponse.Hypothesis[] nBest)
Create a new ASR response.
|
@SerializedName(value="final") public final boolean isFinal
public final String status
public final String error
public final SpokestackASRResponse.Hypothesis[] hypotheses
public SpokestackASRResponse(String serverStatus, String err, boolean finalResponse, SpokestackASRResponse.Hypothesis[] nBest)
serverStatus
- status response from servererr
- error messagefinalResponse
- is this a full transcript?nBest
- list of asr hypothesesCopyright © 2021. All rights reserved.