LoggingSpeechToTextClient class

A delegating speech-to-text client that logs operations to a Logger.

This is an experimental feature.

Inheritance
Available extensions

Constructors

LoggingSpeechToTextClient(SpeechToTextClient innerClient, {required Logger logger})
Creates a new LoggingSpeechToTextClient.

Properties

hashCode → int
The hash code for this object.
no setterinherited
innerClient → SpeechToTextClient
The inner client to delegate to.
finalinherited
jsonEncoder ↔ JsonEncoder
The JsonEncoder used to serialize log data.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

asBuilder() → SpeechToTextClientBuilder

Available on SpeechToTextClient, provided by the SpeechToTextClientBuilderSpeechToTextClientExtensions extension

Creates a new SpeechToTextClientBuilder using this client as its inner client.
dispose() → void
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
inherited
getService<T>({Object? key}) → T?
Gets a service of the specified type.
inherited
getStreamingText({required Stream<List<int>> stream, SpeechToTextOptions? options, CancellationToken? cancellationToken}) → Stream<SpeechToTextResponse>
Transcribes the given audio stream as a stream of updates.
override
getText({required Stream<List<int>> stream, SpeechToTextOptions? options, CancellationToken? cancellationToken}) → Future<SpeechToTextResponse>
Transcribes the given audio stream.
override
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