QueryInput class

Represents the query input. It can contain either:

  1. an audio config which instructs the speech recognizer how to process the speech audio,
  2. a conversational query in the form of text, or
  3. an event that specifies which intent to trigger.

Constructors

QueryInput({InputAudioConfig audioConfig, TextInput text, EventInput event})

Properties

audioConfig InputAudioConfig
Instructs the speech recognizer how to process the speech audio.
final
event EventInput
The event to be processed.
final
hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
text TextInput
The natural language text to be processed.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object. [...]
inherited

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited

Static Methods

fromJson(Map<String, dynamic> json) QueryInput