0
votes

I am trying to disable the HTML5 responses from google-assistant-sdk and receive only text responses.

The Google Assistant SDK documentation has a ScreenMode parameter, which seems to be used to disable 'card' (html) responses, but even when set to OFF, some queries such as "Who was the first astronaut" always return HTML content, regardless of ScreenMode.

How can I completely disable HTML5 responses and just get text responses?

1

1 Answers

0
votes

Have you tried leaving ScreenMode unset or set it to SCREEN_MODE_UNSPECIFIED?

I use the following Java code and I never see HTML:

ScreenOutConfig screenOutConfig = ScreenOutConfig.newBuilder()
    //.setScreenMode(ScreenOutConfig.ScreenMode.PLAYING)
    .build();

When I want to test HTML output, I uncomment the middle line.