SpeechToTextResponseUpdate.fromText constructor

SpeechToTextResponseUpdate.fromText(
  1. SpeechToTextResponseUpdateKind kind,
  2. String text
)

Creates an update from a text string.

Implementation

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