Dialogflow V2 API - Module Google::Cloud::Dialogflow::V2::StreamingRecognitionResult::MessageType (v1.17.0)

Reference documentation and code samples for the Dialogflow V2 API module Google::Cloud::Dialogflow::V2::StreamingRecognitionResult::MessageType.

Type of the response message.

Constants

MESSAGE_TYPE_UNSPECIFIED

value: 0
Not specified. Should never be used.

TRANSCRIPT

value: 1
Message contains a (possibly partial) transcript.

DTMF_DIGITS

value: 3
Message contains DTMF digits.

END_OF_SINGLE_UTTERANCE

value: 2
This event indicates that the server has detected the end of the user's speech utterance and expects no additional inputs. Therefore, the server will not process additional audio (although it may subsequently return additional results). The client should stop sending additional audio data, half-close the gRPC connection, and wait for any additional results until the server closes the gRPC connection. This message is only sent if single_utterance was set to true, and is not used otherwise.

PARTIAL_DTMF_DIGITS

value: 4
Message contains DTMF digits. Before a message with DTMF_DIGITS is sent, a message with PARTIAL_DTMF_DIGITS may be sent with DTMF digits collected up to the time of sending, which represents an intermediate result.

SPEECH_ACTIVITY_BEGIN

value: 5
This event indicates that the server has detected the beginning of human voice activity in the stream. This event can be returned multiple times if speech starts and stops repeatedly throughout the stream.

SPEECH_ACTIVITY_END

value: 6
This event indicates that the server has detected the end of human voice activity in the stream. This event can be returned multiple times if speech starts and stops repeatedly throughout the stream.