Generate and play system outputs

After receiving the response from Dialog, the first thing to do is extract and play system messages to the user, including any questions prompting for user input. A single ExecuteResponse payload generally contains multiple messages. These messages can be standalone messages, or they can be part of other action types. For example, a QA Action generally contains a message prompting the user for input.

Execute response and messages

This section provides information on some options for generating and playing system output to the user via different output modalities.


Extract and play text messages

Extract and play system text messages from response.

Generate and play synthesized speech output

Options for generating synthesized speech output (TTS).

Provide speech response using recorded speech audio

Options for using recorded speech audio for output.