Assistant SDK no longer responds with text response
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.
Been having the exact same issue as well!
Having the same issue.
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 }
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.
Issue is back. Seems the screen on/off makes zero difference now.
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); // {}
});
I also have the same problem related to the lack of response because it displays a blank field
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.