Cloud Speech-to-Text v2 API - Class StreamingRecognizeRequest (1.0.0-beta09)

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

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

Request message for the [StreamingRecognize][google.cloud.speech.v2.Speech.StreamingRecognize] method. Multiple [StreamingRecognizeRequest][google.cloud.speech.v2.StreamingRecognizeRequest] messages are sent in one call.

If the [Recognizer][google.cloud.speech.v2.Recognizer] referenced by [recognizer][google.cloud.speech.v2.StreamingRecognizeRequest.recognizer] contains a fully specified request configuration then the stream may only contain messages with only [audio][google.cloud.speech.v2.StreamingRecognizeRequest.audio] set.

Otherwise the first message must contain a [recognizer][google.cloud.speech.v2.StreamingRecognizeRequest.recognizer] and a [streaming_config][google.cloud.speech.v2.StreamingRecognizeRequest.streaming_config] message that together fully specify the request configuration and must not contain [audio][google.cloud.speech.v2.StreamingRecognizeRequest.audio]. All subsequent messages must only have [audio][google.cloud.speech.v2.StreamingRecognizeRequest.audio] set.

Inheritance

object > StreamingRecognizeRequest

Namespace

Google.Cloud.Speech.V2

Assembly

Google.Cloud.Speech.V2.dll

Constructors

StreamingRecognizeRequest()

public StreamingRecognizeRequest()

StreamingRecognizeRequest(StreamingRecognizeRequest)

public StreamingRecognizeRequest(StreamingRecognizeRequest other)
Parameter
NameDescription
otherStreamingRecognizeRequest

Properties

Audio

public ByteString Audio { get; set; }

Inline audio bytes to be Recognized. Maximum size for this field is 15 KB per request.

Property Value
TypeDescription
ByteString

HasAudio

public bool HasAudio { get; }

Gets whether the "audio" field is set

Property Value
TypeDescription
bool

Recognizer

public string Recognizer { get; set; }

Required. The name of the Recognizer to use during recognition. The expected format is projects/{project}/locations/{location}/recognizers/{recognizer}. The {recognizer} segment may be set to _ to use an empty implicit Recognizer.

Property Value
TypeDescription
string

RecognizerAsRecognizerName

public RecognizerName RecognizerAsRecognizerName { get; set; }

RecognizerName-typed view over the Recognizer resource name property.

Property Value
TypeDescription
RecognizerName

StreamingConfig

public StreamingRecognitionConfig StreamingConfig { get; set; }

StreamingRecognitionConfig to be used in this recognition attempt. If provided, it will override the default RecognitionConfig stored in the Recognizer.

Property Value
TypeDescription
StreamingRecognitionConfig

StreamingRequestCase

public StreamingRecognizeRequest.StreamingRequestOneofCase StreamingRequestCase { get; }
Property Value
TypeDescription
StreamingRecognizeRequestStreamingRequestOneofCase