Struct google_dialogflow2_beta1::GoogleCloudDialogflowV2beta1StreamingAnalyzeContentRequest[][src]

pub struct GoogleCloudDialogflowV2beta1StreamingAnalyzeContentRequest {
    pub input_text: Option<String>,
    pub reply_audio_config: Option<GoogleCloudDialogflowV2beta1OutputAudioConfig>,
    pub input_audio: Option<String>,
    pub text_config: Option<GoogleCloudDialogflowV2beta1InputTextConfig>,
    pub audio_config: Option<GoogleCloudDialogflowV2beta1InputAudioConfig>,
}

The top-level message sent by the client to the StreamingAnalyzeContent method.

Multiple request messages must be sent in the following order:

  1. The first message must contain participant and config fields. To receive an audio response, the first message must also contain the reply_audio_config field. The first message must not contain input.

  2. All subsequent messages must contain only input data. Specifically:

    • If the config in the first message was set to audio_config, then all subsequent messages must contain only input_audio. It is a good practice to split the input audio into short chunks and deliver each chunk in a separate message.
    • If the config in the first message was set to text_config, then the second message must contain only input_text. Moreover, the input_text field can be only sent once. After all input is delivered, the client must half-close, or abort the request stream.

Activities

This type is used in activities, which are methods you may call on this type or where this type is involved in. The list links the activity name, along with information about where it is used (one of request and response).

Fields

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. The input_text field can be only sent once.

Optional. Instructs the speech synthesizer how to generate the output audio.

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.

The natural language text to be processed.

Instructs the speech recognizer how to process the speech audio.

Trait Implementations

Auto Trait Implementations