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

Assistant SDK no longer responds with text response

Open greghesp opened this issue 5 years ago • 8 comments

As per the code example, the below no longer responds with the answer from Google Assistant. Audio responses are still provided, however the text response is always blank

Having asked questions such as

  • What time is it?
  • What's the weather in London?
  • Who is the president of the USA?
  • How tall is the Empire State Building?
const promptUser = () => {
    stdio.question('> ', (err, prompt) => {
        assistant.assist(prompt)
            .then(({ text }) => {
                console.log(text); // Will log the answer
                promptUser();
            });
    });
};

What I have found from personal investigation is that I can replicate this issue by passing the PLAYING parameter to the screen mode in the SDK. If I set the screen mode to OFF then it responds with the text.

Whilst these are only my results, I also found that using this example repo where the screen mode isn't passed at all, it still does not respond with the text.

I have also read that some users pass OFF as the screen mode but still have this issue as per this issue: https://github.com/endoplasmic/google-assistant/issues/81

It seems that this issue actually begun around the end of last year.

greghesp avatar Jul 04 '20 18:07 greghesp

Been having the exact same issue as well!

hooverand avatar Jul 04 '20 20:07 hooverand

Having the same issue.

werra11 avatar Jul 10 '20 22:07 werra11

I am having the same problem. Sometime I get no response, sometimes I get an actual response, and then sometimes I get a space as the response. { "command": "what time is it", "response": " ", "timestamp": 1594785476641 }, { "command": "tell me a joke", "response": "Why won’t the shrimp share its treasure?\nBecause it’s shellfish 🍤", "timestamp": 1594859843734 }, { "command": "What time is it", "response": " ", "timestamp": 1594859902222 }, { "command": "tell me a joke", "response": "", "timestamp": 1594860056841 }, { "command": "What time is it", "response": "", "timestamp": 1594860119997 }

2ndLeaf avatar Jul 12 '20 14:07 2ndLeaf

I got the same kind of experience. No text answer, only audio as response to a question. The result of that seems that the question is (broad)casted.

bertreb avatar Aug 20 '20 10:08 bertreb

Issue is back. Seems the screen on/off makes zero difference now.

greghesp avatar Sep 24 '20 10:09 greghesp

Can confirm the issue and it seems to be permanent now. response is an empty object.

const assistant = new GoogleAssistant(CREDENTIALS);
assistant.assist('what time is it?')
  .then((response) => {
    console.log(response); // {}
  });

dneustadt avatar Sep 26 '20 23:09 dneustadt

I also have the same problem related to the lack of response because it displays a blank field

Akszyn avatar Jan 20 '21 14:01 Akszyn

Would like to add to this issue, the issue I'm experiencing is that the assistant sometimes provide text output, but for some questions like "what time is it", no text response is returned, only audio is played. I'm using a modified version of the console input example, which takes text input and play audio output to test the operation. I hope this issue can be fixed soon as my primary use case is in a text-based scenario.

cryptoAlgorithm avatar Apr 10 '21 04:04 cryptoAlgorithm