Cloud Speech-to-Text v2 API - Class StreamingRecognitionFeatures (1.0.0-beta07)

public sealed class StreamingRecognitionFeatures : IMessage<StreamingRecognitionFeatures>, IEquatable<StreamingRecognitionFeatures>, IDeepCloneable<StreamingRecognitionFeatures>, IBufferMessage, IMessage

Reference documentation and code samples for the Cloud Speech-to-Text v2 API class StreamingRecognitionFeatures.

Available recognition features specific to streaming recognition requests.

Inheritance

object > StreamingRecognitionFeatures

Namespace

Google.Cloud.Speech.V2

Assembly

Google.Cloud.Speech.V2.dll

Constructors

StreamingRecognitionFeatures()

public StreamingRecognitionFeatures()

StreamingRecognitionFeatures(StreamingRecognitionFeatures)

public StreamingRecognitionFeatures(StreamingRecognitionFeatures other)
Parameter
NameDescription
otherStreamingRecognitionFeatures

Properties

EnableVoiceActivityEvents

public bool EnableVoiceActivityEvents { get; set; }

If true, responses with voice activity speech events will be returned as they are detected.

Property Value
TypeDescription
bool

InterimResults

public bool InterimResults { get; set; }

Whether or not to stream interim results to the client. If set to true, interim results will be streamed to the client. Otherwise, only the final response will be streamed back.

Property Value
TypeDescription
bool

VoiceActivityTimeout

public StreamingRecognitionFeatures.Types.VoiceActivityTimeout VoiceActivityTimeout { get; set; }

If set, the server will automatically close the stream after the specified duration has elapsed after the last VOICE_ACTIVITY speech event has been sent. The field voice_activity_events must also be set to true.

Property Value
TypeDescription
StreamingRecognitionFeaturesTypesVoiceActivityTimeout