StreamingRecognizeRequest

StreamingRecognizeRequest is the top-level message sent by the client for the StreamingRecognize. Multiple StreamingRecognizeRequest messages are sent. The first message must contain a streamingConfig message and must not contain audio data. All subsequent messages must contain audio data and must not contain a streamingConfig message.

JSON representation
{

  // Union field streaming_request can be only one of the following:
  "streamingConfig": {
    object(StreamingRecognitionConfig)
  },
  "audioContent": string,
  // End of list of possible types for union field streaming_request.
}
Fields

Union field streaming_request.

streaming_request can be only one of the following:

streamingConfig

object(StreamingRecognitionConfig)

The streamingConfig message provides information to the recognizer that specifies how to process the request.

The first StreamingRecognizeRequest message must contain a streamingConfig message.

audioContent

string (bytes format)

The audio data to be recognized. Sequential chunks of audio data are sent in sequential StreamingRecognizeRequest messages. The first StreamingRecognizeRequest message must not contain audioContent data and all subsequent StreamingRecognizeRequest messages must contain audioContent data. The audio bytes must be encoded as specified in RecognitionConfig. Note: as with all bytes fields, protobuffers use a pure binary representation (not base64). See audio limits.

A base64-encoded string.

このページは役立ちましたか?評価をお願いいたします。

フィードバックを送信...