RecognitionAudio class

Contains audio data in the encoding specified in the RecognitionConfig.

Either content or uri must be supplied. Supplying both or neither returns google.rpc.Code.INVALID_ARGUMENT. See content limits.

Constructors

RecognitionAudio({String? content, String? uri})
RecognitionAudio.fromJson(Map json_)

Properties

content String?
The audio data bytes encoded as specified in RecognitionConfig.
getter/setter pair
contentAsBytes List<int>
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
uri String?
URI that points to a file that contains audio data bytes as specified in RecognitionConfig.
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent 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