SpeechToTextRequest class

A request to recognize speech from one complete audio input.

Constructors

SpeechToTextRequest({required SpeechAudioInput audio, String? languageHint, String? contextPrompt, int maxOutputTokens = 1024})
Creates a speech recognition request.
const

Properties

audio → SpeechAudioInput
Audio to transcribe.
final
contextPrompt → String?
Optional vocabulary or surrounding-text guidance for the recognizer.
final
hashCode → int
The hash code for this object.
no setterinherited
languageHint → String?
Optional BCP-47 language hint, such as en or fr-CA.
final
maxOutputTokens → int
Maximum number of generated transcript tokens.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited