SpeechToText class

An interface to Google's Speech-to-Text Api via grpc.

Important! You need an own Google project to use this class.

Constructors

SpeechToText.viaServiceAccount(ServiceAccount account)
Creates a SpeechToText interface using a service account.
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

dispose() → void
longRunningRecognize(RecognitionConfig config, String audioGcsUri) → ResponseFuture<Operation>
Sends a LongRunningRecognizeRequest request to the Google Speech Api. Requires a RecognitionConfigBeta and an RecognitionAudio.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
recognize(RecognitionConfig config, List<int> audio) Future<RecognizeResponse>
Sends a RecognizeRequest request to the Google Speech Api. Requires a RecognitionConfig and an RecognitionAudio.
streamingRecognize(StreamingRecognitionConfig config, Stream<List<int>> audioStream) Stream<StreamingRecognizeResponse>
Sends a StreamingRecognizeRequest to the Google Speech Api. Requires a StreamingRecognitionConfig and an audioStream.
toString() String
A string representation of this object.
inherited

Operators

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