assistant-sdk-python icon indicating copy to clipboard operation
assistant-sdk-python copied to clipboard

how to get supplemental_display_text in all responses?

Open prvsousa opened this issue 4 years ago • 3 comments

Hi. I'm using the command:

python -m pushtotalk --device-id RaspberryPI --device-model-id RaspberryPI -v to talk with the google assistant. However, I need to get always the response of the assistant in text... Even if I can the sound with an answer, sometimes i don't get the supplemental_display_text.

Sometimes I only get:

DEBUG:root:AssistResponse: dialog_state_out { microphone_mode: CLOSE_MICROPHONE }

There is something solution for this?

prvsousa avatar Mar 04 '20 17:03 prvsousa

The display text is supplemental, and there is no way to force the response. One alternative is to enable HTML output and then parse the HTML for the text.

Fleker avatar Mar 04 '20 19:03 Fleker

How can I enable it ?

Thank you

prvsousa avatar Mar 04 '20 19:03 prvsousa

The --display true which you can then get.

Fleker avatar Mar 04 '20 19:03 Fleker