Class StreamingDetectIntentResponse (0.8.2)

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:

  1. If the input was set to streaming audio, the first one or more messages contain recognition_result. Each recognition_result represents a more complete transcript of what the user said. The last recognition_result has is_final set to true.

  2. If enable_partial_response is true, the following N messages (currently 1 <= N <= 4) contain detect_intent_response. The first (N-1) detect_intent_response\ s will have response_type set to PARTIAL. The last detect_intent_response has response_type set to FINAL. If response_type is false, response stream only contains the final detect_intent_response.

Attributes

NameDescription
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.