SpeechToTextResponse.fromText constructor

SpeechToTextResponse.fromText(
  1. String text
)

Creates a response from a text string.

Implementation

SpeechToTextResponse.fromText(String text)
    : contents = [TextContent(text)],
      startTime = null,
      endTime = null,
      responseId = null,
      modelId = null,
      rawRepresentation = null,
      additionalProperties = null,
      usage = null;