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.
Implements
IMessageStreamingRecognitionFeatures, IEquatableStreamingRecognitionFeatures, IDeepCloneableStreamingRecognitionFeatures, IBufferMessage, IMessageNamespace
Google.Cloud.Speech.V2Assembly
Google.Cloud.Speech.V2.dll
Constructors
StreamingRecognitionFeatures()
public StreamingRecognitionFeatures()
StreamingRecognitionFeatures(StreamingRecognitionFeatures)
public StreamingRecognitionFeatures(StreamingRecognitionFeatures other)
Parameter | |
---|---|
Name | Description |
other |
StreamingRecognitionFeatures |
Properties
EnableVoiceActivityEvents
public bool EnableVoiceActivityEvents { get; set; }
If true
, responses with voice activity speech events will be returned as
they are detected.
Property Value | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
StreamingRecognitionFeaturesTypesVoiceActivityTimeout |