StreamingDetectIntentResponse(
mapping=None, *, ignore_unknown_fields=False, **kwargs
)
The top-level message returned from the StreamingDetectIntent
method.
Multiple response messages can be returned in order:
If the input was set to streaming audio, the first one or more messages contain
recognition_result
. Eachrecognition_result
represents a more complete transcript of what the user said. The lastrecognition_result
hasis_final
set totrue
.If
enable_partial_response
is true, the following N messages (currently 1 <= N <= 4) containdetect_intent_response
. The first (N-1)detect_intent_response
\ s will haveresponse_type
set toPARTIAL
. The lastdetect_intent_response
hasresponse_type
set toFINAL
. Ifresponse_type
is false, response stream only contains the finaldetect_intent_response
.
Attributes | |
---|---|
Name | Description |
recognition_result |
google.cloud.dialogflowcx_v3beta1.types.StreamingRecognitionResult
The result of speech recognition. |
detect_intent_response |
google.cloud.dialogflowcx_v3beta1.types.DetectIntentResponse
The response from detect intent. |