InputAudioConfig class

Instructs the speech recognizer how to process the audio content.

Constructors

InputAudioConfig({@required String audioEncoding, @required int sampleRateHertz, @required String languageCode, List<String> phraseHints})

Properties

audioEncoding String
Audio encoding of the audio content to process. Use AudioEncoding.
final
hashCode int
The hash code for this object. [...]
read-only, inherited
languageCode String
The language of the supplied audio. Dialogflow does not do translations. See Language Support for a list of the currently supported language codes. Note that queries in the same session do not necessarily need to specify the same language.
final
phraseHints List<String>
The collection of phrase hints which are used to boost accuracy of speech recognition. Refer to Cloud Speech API documentation for more details.
final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
sampleRateHertz int
Sample rate (in Hertz) of the audio content sent in the query. Refer to Cloud Speech API documentation for more details.
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) InputAudioConfig