public sealed class StreamingRecognizeRequest : IMessage<StreamingRecognizeRequest>, IEquatable<StreamingRecognizeRequest>, IDeepCloneable<StreamingRecognizeRequest>, IBufferMessage, IMessage
The top-level message sent by the client for the StreamingRecognize method.
Multiple StreamingRecognizeRequest messages are sent. The first message
must contain a streaming_config message and must not contain
audio_content. All subsequent messages must contain audio_content and
must not contain a streaming_config message.
The audio data to be recognized. Sequential chunks of audio data are sent
in sequential StreamingRecognizeRequest messages. The first
StreamingRecognizeRequest message must not contain audio_content data
and all subsequent StreamingRecognizeRequest messages must contain
audio_content data. The audio bytes must be encoded as specified in
RecognitionConfig. Note: as with all bytes fields, proto buffers use a
pure binary representation (not base64). See
content limits.
public StreamingRecognitionConfig StreamingConfig { get; set; }
Provides information to the recognizer that specifies how to process the
request. The first StreamingRecognizeRequest message must contain a
streaming_config message.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThe \u003ccode\u003eStreamingRecognizeRequest\u003c/code\u003e class is used for sending messages to the \u003ccode\u003eStreamingRecognize\u003c/code\u003e method in the Google Cloud Speech API, allowing for real-time audio transcription.\u003c/p\u003e\n"],["\u003cp\u003eThe first message sent in a streaming request must include a \u003ccode\u003estreaming_config\u003c/code\u003e message and cannot contain \u003ccode\u003eaudio_content\u003c/code\u003e, while subsequent messages must include \u003ccode\u003eaudio_content\u003c/code\u003e and cannot have a \u003ccode\u003estreaming_config\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eStreamingRecognizeRequest\u003c/code\u003e implements multiple interfaces including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, providing functionality for message handling, equality checks, deep cloning, and buffer operations.\u003c/p\u003e\n"],["\u003cp\u003eThe class contains properties like \u003ccode\u003eAudioContent\u003c/code\u003e (for audio data) and \u003ccode\u003eStreamingConfig\u003c/code\u003e (for request configuration), offering developers a way to configure and provide data for streaming recognition.\u003c/p\u003e\n"],["\u003cp\u003eThe class supports two constructors, a parameterless one and one that accepts another \u003ccode\u003eStreamingRecognizeRequest\u003c/code\u003e object as a parameter, enabling creation and cloning of \u003ccode\u003eStreamingRecognizeRequest\u003c/code\u003e instances.\u003c/p\u003e\n"]]],[],null,[]]