The top-level message sent by the client to the
Participants.StreamingAnalyzeContent
method.
Multiple request messages should be sent in order:
The first message must contain
participant,
config
and optionally
query_params.
If you want to receive an audio response, it should also contain
reply_audio_config.
The message must not contain
input.
If
config
in the first message was set to
audio_config,
all subsequent messages must contain
input_audio
to continue with Speech recognition. However, note that:
Dialogflow will bill you for the audio so far.
Dialogflow discards all Speech recognition results in favor of
the text input.
If
StreamingAnalyzeContentRequest.config
in the first message was set to
StreamingAnalyzeContentRequest.text_config,
then the second message must contain only
input_text.
Moreover, you must not send more than two messages.
After you sent all input, you must half-close or abort the request
stream.
This message has oneof_ fields (mutually exclusive fields).
For each oneof, at most one member field can be set at the same time.
Setting any member of the oneof automatically clears all other
members.
google.cloud.dialogflow_v2.types.OutputAudioConfig
Speech synthesis configuration.
The speech synthesis settings for a virtual
agent that may be configured for the associated
conversation profile are not used when calling
StreamingAnalyzeContent. If this configuration
is not supplied, speech synthesis is disabled.
input_audio
bytes
The input audio content to be recognized. Must be sent if
audio_config is set in the first message. The complete
audio over all streaming messages must not exceed 1 minute.
This field is a member of oneof_ input.
input_text
str
The UTF-8 encoded natural language text to be processed.
Must be sent if text_config is set in the first message.
Text length must not exceed 256 bytes for virtual agent
interactions. The input_text field can be only sent
once, and would cancel the speech recognition if any
ongoing.
This field is a member of oneof_ input.
input_dtmf
google.cloud.dialogflow_v2.types.TelephonyDtmfEvents
The DTMF digits used to invoke intent and
fill in parameter value.
This input is ignored if the previous response
indicated that DTMF input is not accepted.
This field is a member of oneof_ input.
google.protobuf.struct_pb2.Struct
Additional parameters to be put into
Dialogflow CX session parameters. To remove a
parameter from the session, clients should
explicitly set the parameter value to null.
Note: this field should only be used if you are
connecting to a Dialogflow CX agent.
enable_extended_streaming
bool
Optional. Enable full bidirectional streaming. You can keep
streaming the audio until timeout, and there's no need to
half close the stream to get the response.
Restrictions:
- Timeout: 3 mins.
- Audio Encoding: only supports
AudioEncoding.AUDIO_ENCODING_LINEAR_16
and
AudioEncoding.AUDIO_ENCODING_MULAW
- Lifecycle: conversation should be in Assist Stage, go
to
Conversations.CreateConversation
for more information.
InvalidArgument Error will be returned if the one of
restriction checks failed.
You can find more details in
https://cloud.google.com/agent-assist/docs/extended-streaming
enable_partial_automated_agent_reply
bool
Optional. Enable partial responses from Dialogflow CX agent.
If this flag is not enabled, response stream still contains
only one final response even if some Fulfillment\ s in
Dialogflow CX agent have been configured to return partial
responses.
enable_debugging_info
bool
If true, StreamingAnalyzeContentResponse.debugging_info
will get populated.
[[["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-28 UTC."],[],[],null,["# Class StreamingAnalyzeContentRequest (2.41.2)\n\nVersion latestkeyboard_arrow_down\n\n- [2.41.2 (latest)](/python/docs/reference/dialogflow/latest/google.cloud.dialogflow_v2.types.StreamingAnalyzeContentRequest)\n- [2.41.1](/python/docs/reference/dialogflow/2.41.1/google.cloud.dialogflow_v2.types.StreamingAnalyzeContentRequest)\n- [2.40.0](/python/docs/reference/dialogflow/2.40.0/google.cloud.dialogflow_v2.types.StreamingAnalyzeContentRequest)\n- [2.39.1](/python/docs/reference/dialogflow/2.39.1/google.cloud.dialogflow_v2.types.StreamingAnalyzeContentRequest)\n- [2.38.0](/python/docs/reference/dialogflow/2.38.0/google.cloud.dialogflow_v2.types.StreamingAnalyzeContentRequest)\n- [2.37.0](/python/docs/reference/dialogflow/2.37.0/google.cloud.dialogflow_v2.types.StreamingAnalyzeContentRequest)\n- [2.36.0](/python/docs/reference/dialogflow/2.36.0/google.cloud.dialogflow_v2.types.StreamingAnalyzeContentRequest)\n- [2.35.0](/python/docs/reference/dialogflow/2.35.0/google.cloud.dialogflow_v2.types.StreamingAnalyzeContentRequest)\n- [2.34.0](/python/docs/reference/dialogflow/2.34.0/google.cloud.dialogflow_v2.types.StreamingAnalyzeContentRequest)\n- [2.33.0](/python/docs/reference/dialogflow/2.33.0/google.cloud.dialogflow_v2.types.StreamingAnalyzeContentRequest)\n- [2.32.0](/python/docs/reference/dialogflow/2.32.0/google.cloud.dialogflow_v2.types.StreamingAnalyzeContentRequest)\n- [2.30.2](/python/docs/reference/dialogflow/2.30.2/google.cloud.dialogflow_v2.types.StreamingAnalyzeContentRequest)\n- [2.29.0](/python/docs/reference/dialogflow/2.29.0/google.cloud.dialogflow_v2.types.StreamingAnalyzeContentRequest)\n- [2.28.3](/python/docs/reference/dialogflow/2.28.3/google.cloud.dialogflow_v2.types.StreamingAnalyzeContentRequest)\n- [2.27.0](/python/docs/reference/dialogflow/2.27.0/google.cloud.dialogflow_v2.types.StreamingAnalyzeContentRequest)\n- [2.26.0](/python/docs/reference/dialogflow/2.26.0/google.cloud.dialogflow_v2.types.StreamingAnalyzeContentRequest)\n- [2.25.0](/python/docs/reference/dialogflow/2.25.0/google.cloud.dialogflow_v2.types.StreamingAnalyzeContentRequest)\n- [2.24.1](/python/docs/reference/dialogflow/2.24.1/google.cloud.dialogflow_v2.types.StreamingAnalyzeContentRequest)\n- [2.23.3](/python/docs/reference/dialogflow/2.23.3/google.cloud.dialogflow_v2.types.StreamingAnalyzeContentRequest)\n- [2.22.0](/python/docs/reference/dialogflow/2.22.0/google.cloud.dialogflow_v2.types.StreamingAnalyzeContentRequest)\n- [2.21.0](/python/docs/reference/dialogflow/2.21.0/google.cloud.dialogflow_v2.types.StreamingAnalyzeContentRequest)\n- [2.20.0](/python/docs/reference/dialogflow/2.20.0/google.cloud.dialogflow_v2.types.StreamingAnalyzeContentRequest)\n- [2.19.1](/python/docs/reference/dialogflow/2.19.1/google.cloud.dialogflow_v2.types.StreamingAnalyzeContentRequest)\n- [2.18.0](/python/docs/reference/dialogflow/2.18.0/google.cloud.dialogflow_v2.types.StreamingAnalyzeContentRequest)\n- [2.17.0](/python/docs/reference/dialogflow/2.17.0/google.cloud.dialogflow_v2.types.StreamingAnalyzeContentRequest)\n- [2.16.1](/python/docs/reference/dialogflow/2.16.1/google.cloud.dialogflow_v2.types.StreamingAnalyzeContentRequest)\n- [2.15.2](/python/docs/reference/dialogflow/2.15.2/google.cloud.dialogflow_v2.types.StreamingAnalyzeContentRequest)\n- [2.14.1](/python/docs/reference/dialogflow/2.14.1/google.cloud.dialogflow_v2.types.StreamingAnalyzeContentRequest)\n- [2.13.0](/python/docs/reference/dialogflow/2.13.0/google.cloud.dialogflow_v2.types.StreamingAnalyzeContentRequest)\n- [2.12.0](/python/docs/reference/dialogflow/2.12.0/google.cloud.dialogflow_v2.types.StreamingAnalyzeContentRequest)\n- [2.11.0](/python/docs/reference/dialogflow/2.11.0/google.cloud.dialogflow_v2.types.StreamingAnalyzeContentRequest)\n- [2.10.0](/python/docs/reference/dialogflow/2.10.0/google.cloud.dialogflow_v2.types.StreamingAnalyzeContentRequest)\n- [2.9.1](/python/docs/reference/dialogflow/2.9.1/google.cloud.dialogflow_v2.types.StreamingAnalyzeContentRequest)\n- [2.8.1](/python/docs/reference/dialogflow/2.8.1/google.cloud.dialogflow_v2.types.StreamingAnalyzeContentRequest)\n- [2.7.1](/python/docs/reference/dialogflow/2.7.1/google.cloud.dialogflow_v2.types.StreamingAnalyzeContentRequest)\n- [2.6.0](/python/docs/reference/dialogflow/2.6.0/google.cloud.dialogflow_v2.types.StreamingAnalyzeContentRequest)\n- [2.5.0](/python/docs/reference/dialogflow/2.5.0/google.cloud.dialogflow_v2.types.StreamingAnalyzeContentRequest)\n- [2.4.0](/python/docs/reference/dialogflow/2.4.0/google.cloud.dialogflow_v2.types.StreamingAnalyzeContentRequest)\n- [2.3.0](/python/docs/reference/dialogflow/2.3.0/google.cloud.dialogflow_v2.types.StreamingAnalyzeContentRequest)\n- [2.2.0](/python/docs/reference/dialogflow/2.2.0/google.cloud.dialogflow_v2.types.StreamingAnalyzeContentRequest)\n- [2.1.2](/python/docs/reference/dialogflow/2.1.2/google.cloud.dialogflow_v2.types.StreamingAnalyzeContentRequest)\n- [2.0.0](/python/docs/reference/dialogflow/2.0.0/google.cloud.dialogflow_v2.types.StreamingAnalyzeContentRequest)\n- [1.1.3](/python/docs/reference/dialogflow/1.1.3/google.cloud.dialogflow_v2.types.StreamingAnalyzeContentRequest)\n- [1.0.0](/python/docs/reference/dialogflow/1.0.0/google.cloud.dialogflow_v2.types.StreamingAnalyzeContentRequest)\n- [0.8.0](/python/docs/reference/dialogflow/0.8.0/google.cloud.dialogflow_v2.types.StreamingAnalyzeContentRequest)\n- [0.7.2](/python/docs/reference/dialogflow/0.7.2/google.cloud.dialogflow_v2.types.StreamingAnalyzeContentRequest) \n\n StreamingAnalyzeContentRequest(\n mapping=None, *, ignore_unknown_fields=False, **kwargs\n )\n\nThe top-level message sent by the client to the\nParticipants.StreamingAnalyzeContent\nmethod.\n\nMultiple request messages should be sent in order:\n\n1. The first message must contain\n participant,\n config\n and optionally\n query_params.\n If you want to receive an audio response, it should also contain\n reply_audio_config.\n The message must not contain\n input.\n\n2. If\n config\n in the first message was set to\n audio_config,\n all subsequent messages must contain\n input_audio\n to continue with Speech recognition. However, note that:\n\n - Dialogflow will bill you for the audio so far.\n - Dialogflow discards all Speech recognition results in favor of the text input.\n3. If\n StreamingAnalyzeContentRequest.config\n in the first message was set to\n StreamingAnalyzeContentRequest.text_config,\n then the second message must contain only\n input_text.\n Moreover, you must not send more than two messages.\n\nAfter you sent all input, you must half-close or abort the request\nstream.\n\nThis message has `oneof`_ fields (mutually exclusive fields).\nFor each oneof, at most one member field can be set at the same time.\nSetting any member of the oneof automatically clears all other\nmembers.\n\n.. _oneof: \u003chttps://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields\u003e"]]