SpeechResult Class

public final class SpeechResult
extends RecognizeResult

The continuous speech recognition result.

Method Summary

Modifier and Type Method and Description
static SpeechResult fromJson(JsonReader jsonReader)

Reads an instance of SpeechResult from the JsonReader.

String getSpeech()

Get the speech property: The recognized speech in string.

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from java.lang.Object

Method Details

fromJson

public static SpeechResult fromJson(JsonReader jsonReader)

Reads an instance of SpeechResult from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of SpeechResult if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If an error occurs while reading the SpeechResult.

getSpeech

public String getSpeech()

Get the speech property: The recognized speech in string.

Returns:

the speech value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to