InputConfigV2 class
Helper Class For passing in audio input config
Constructors
- InputConfigV2({AudioEncoding audioEncoding = AudioEncoding.AUDIO_ENCODING_LINEAR_16, String encoding = "AUDIO_ENCODING_LINEAR_16", String languageCode = "en-US", int sampleRateHertz = 8000})
Properties
- audioEncoding ↔ AudioEncoding
-
getter/setter pair
- encoding ↔ String
-
Required. String encoding of audio data sent in all RecognitionAudio messages.
See AudioEncoding docs
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- languageCode ↔ String
-
Required. The language of the supplied audio as a
BCP-47 language tag.
Example: "en-US".
See Language Support
for a list of the currently supported language codes.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sampleRateHertz ↔ int
-
Required. Sample rate in Hertz of the audio data sent in all RecognitionAudio
messages. Valid values are: 8000-48000. 16000 is optimal. For best
results, set the sampling rate of the audio source to 16000 Hz.
If that's not possible, use the native sample rate of the audio source
(instead of re-sampling). This field is optional for FLAC and WAV audio
files, but is required for all other audio formats.
For details, see AudioEncoding.
getter/setter pair
Methods
-
cast(
) → InputAudioConfig -
getAudioEncoding(
dynamic encoding) → AudioEncoding -
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