google / aiyprojects-raspbian

API libraries, samples, and system images for AIY Projects (Voice Kit and Vision Kit)
https://aiyprojects.withgoogle.com/
Apache License 2.0
1.62k stars 694 forks source link

AIY Voice Kit Version 2.0, google assistant examples do not work #400

Closed firechen closed 5 years ago

firechen commented 6 years ago

Recently, I have purchased AIY Voice Kit version 2.0 and tried it with my Raspberry Pi 3B. The assistant_grpc_demo.py and cloudspeech_demo.py work well for me. But for those about assistant_library, the demo does not work, there is no response from the demo. For example, I run assistant_library_with_local_commands_demo.py and say "Ok, Google IP address", the program will be blocked there. I have used top command to see the CPU usage, the CPU usage will be above 100. This problem also occurs in other assistant_library demos.

rollynoel commented 6 years ago

I've fought the same issue to a standstill ( see #381 for what I've determined ). I've communicated with Google AIY support ( support-aiyprojects@google.com ), and await their solution. I changed to a 3B+ so I could work the AIY without having to cross the room to push its button. I'm glad it's not only my AIY experiencing this problem.

rollynoel commented 6 years ago

Further, whilst running these tests, something is consuming the /dev/root space on my micro sd card, such that I end up using 100% of it, and the card became unuseable. This was particularly useless with the 8 GB card provided.

Jianan-Li commented 6 years ago

None of the assistant_library demos work for me either. I'm using a Raspberry Pi 3B with aiyprojects-2018-04-13.img. Is there any update on this?

firechen commented 6 years ago

Event though those assistant_library demos do not work, I am able to use custom hotword to trigger grpc assistant now. We can do this with the help of snowboy.

rollynoel commented 6 years ago

Thanks ever for the Snowboy lead. Using Snowboy, will it run well on the included Pi-Zero?

firechen commented 6 years ago

Yes, it works well in both Pi-3b and Pi-Zero WH.

Jianan-Li commented 6 years ago

Thanks for the snowboy lead. But to be honest, I'm still kind of shocked by the fact that the AIY team at Google released an image with broken examples and haven't released an update to fix it in 2 months, and now we have to use a hacky workaround. Is it just me? Do you guys all think that this is acceptable? Especially considering that we all paid $50 dollars for this kit.

rollynoel commented 6 years ago

Any special incantations required to get snowboy to work with Python 3?

charles-d-burton commented 6 years ago

I'm also having issue with this. When I run the commands on a 3B+ the button starts to blink and it seems like everything is working. The problem is that nothing happens, if I say OK Google I get nothing and if I push the button and speak to it nothing happens there either. It seems like the microphone is not working.

Smanar commented 6 years ago

The step 64 "Check your audio" have worked ? And for Snowboy + python3, have you created yourself the files "_snowboydetect.so" and "snowboydetect.py" with swig ? for me it haven't worked as it.

charles-d-burton commented 6 years ago

Yeah, output works fine and the repeating the audio back works fine too. It's just the demo applications that fail.

rollynoel commented 6 years ago

This is what I last heard June 14th when I reported this issue to Google (initially May 15th): "We were able to reproduce this issue and have reported it to the developers with the highest priority. We shall get back to you as soon as we get a resolution for this one.

Thanks AIY Support Team"

Smanar commented 6 years ago

Lol, I have some prbs too, but with you, I m feeling lucky, I have a Google assistant working on a raspberry 1 B+. It's realy strange no-one in this communauty have find a solution.

rollynoel commented 6 years ago

So a AIY Voice 2 hat worked on a RPi with only 26 GPIO pins?

Smanar commented 6 years ago

The AIY lib yes (grpc one), I m not using the hardware. I m using it with a usb sound adaptator https://www.gear4music.com/G4M/Electrovision-USB-Sound-Adaptor/1SD6 with a portable HP + microphone and 2/3 electronics components. Kit is totaly useless to make Google Assitant working.

rollynoel commented 6 years ago

I just closed & commented on issue #381 with what I believe is a fix from Google AIY Support to eliminate this problem. I hope it works as well for you as it did for me.

KyleMitchel commented 6 years ago

I also have this issue. I used @rollynoel suggestion on #381 to no avail.

manoj7410 commented 6 years ago

@KyleMitchel Which RPI board are you using ?

watou commented 6 years ago

@manoj7410 the suggestion on #381 does not work for my RPi 3B+ / Voice Kit V1 / aiyprojects-2018-04-13.img.xz (plus updates) setup.

rollynoel commented 6 years ago

Sorry - it certainly did the trick for my V2 Voice Kit.

watou commented 6 years ago

@rollynoel That is at least helpful that it works for V2 and not V1. I hope a Google person can rescue us V1 Voice Kit users!

manoj7410 commented 6 years ago

@watou A new build has been released by Google and can be obtained from : https://github.com/google/aiyprojects-raspbian/releases Can you please check if your issue got resolved.

rollynoel commented 6 years ago

It has indeed, thanks!

watou commented 6 years ago

@manoj7410 With the Voice Kit V1, the new disk image is now dumping huge piles of JSON and HTML into the terminal window, but still not speaking back to me. I am not performing a sudo apt-get update ; sudo apt-get upgrade to see if that makes any difference. I will now try to decipher what all that text is trying to tell me and report further.

watou commented 6 years ago

Before I've had a chance to speak, this is dumped into the terminal window (see below). Imagine a young kid trying to sort through this without becoming hopelessly dejected at the corporate/legal nature of this barrier? Smart comments aside, how does one proceed?

pi@raspberrypi:~/AIY-projects-python/src/examples/voice $ ./assistant_library_with_button_demo.py 
ON_MUTED_CHANGED:
  {'is_muted': False}
/opt/aiy/projects-python/src/aiy/_drivers/_led.py:51: RuntimeWarning: This channel is already in use, continuing anyway.  Use GPIO.setwarnings(False) to disable warnings.
  GPIO.setup(channel, GPIO.OUT)
ON_START_FINISHED
Say "OK, Google" or press the button, then speak. Press Ctrl+C to quit...
ON_DEVICE_ACTION:
  {'inputs': [{'payload': {'commands': [{'execution': [{'command': 'action.devices.commands.VISUAL_OUTPUT', 'params': {'html': '<html> <head><meta charset="UTF-8"> <link href="https://fonts.googleapis.com/css?family=Roboto:400,700" rel="stylesheet"></head> <style>html,body{background:transparent;margin:0}#popout{bottom:0;box-sizing:border-box;font-family:"Roboto",sans-serif;font-size:40px;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-smoothing:antialiased;position:absolute;transform:translateZ(0);transition:opacity 500ms;transition-timing-function:ease-in-out;width:100%}#popout div{font-family:\'Roboto\',arial,sans-serif}.popout-shadow{background-image:linear-gradient(-180deg,rgba(0,0,0,0.0) 0%,rgba(0,0,0,0.8) 100%);height:5.4em;width:100%}.popout-content{background-color:rgba(25,25,25,.97)}.popout-content:hover,.popout-content:focus{outline:none}.popout-asbar:hover,.popout-asbar:focus{outline:none}.inactive{opacity:.4}#carousel-container{left:0;overflow-x:initial;transition:300ms ease-in-out;transform:translateZ(0)}</style> <script>\nwindow.Assistant = window.Assistant || {};var Assistant = window.Assistant;if (Assistant.clear)Assistant.clear();\nAssistant.clear = function(){if (Assistant.cleanup){Assistant.cleanup();}\nwindow.Assistant = {};};</script> <script>\nwindow.Assistant = window.Assistant || {};var Assistant = window.Assistant;\nAssistant.displayTimeoutMs = 20000;\nAssistant.micTimeoutMs = 0;\nAssistant.hideTimerId = undefined;\nAssistant.micTimerId = undefined;\nAssistant.isUsingRelativeIndex = false;\nAssistant.SUGGESTION_PROMPT_ID = \'suggestion_prompt\';\nAssistant.SUGGESTION_PROMPT;\nAssistant.SUGGESTION_CLASS_NAME = \'suggestion\';\nAssistant.POPOUT;\nAssistant.ICON;\nAssistant.cleanup = function(){Assistant.cleanupTimer_();};\nAssistant.updateDisplayTimeoutMs = function(displayTimeoutMs){if (displayTimeoutMs >= 0){Assistant.displayTimeoutMs = displayTimeoutMs;}\n};\nAssistant.updateMicTimeoutMs = function(micTimeoutMs){if (micTimeoutMs >= 0){Assistant.micTimeoutMs = micTimeoutMs;}\n};\nAssistant.updateIsUsingRelativeIndex = function(usingRelativeIndex){Assistant.isUsingRelativeIndex = !!usingRelativeIndex;};\nAssistant.cleanupTimer_ = function(){if (Assistant.hideTimerId){window.clearTimeout(Assistant.hideTimerId);Assistant.hideTimerId = undefined;}\nif (Assistant.micTimerId){window.clearTimeout(Assistant.micTimerId);Assistant.micTimerId = undefined;}\n};\nAssistant.getSuggestionPrompt = function(){if (!Assistant.SUGGESTION_PROMPT){Assistant.SUGGESTION_PROMPT =\ndocument.getElementById(Assistant.SUGGESTION_PROMPT_ID);}\nreturn Assistant.SUGGESTION_PROMPT;};\nAssistant.run = function(){Assistant.POPOUT = document.getElementById(\'popout\');Assistant.ICON = document.getElementsByClassName(\'assistant-icon\')[0];Assistant.keepShowing();};\nAssistant.keepShowing = function(){if (!Assistant.POPOUT){return;}\nAssistant.cleanupTimer_();Assistant.slideUpPopout();if (Assistant.displayTimeoutMs){Assistant.hideTimerId = setTimeout(function(){Assistant.hideTimerId = undefined;Assistant.slideDownPopout();if (typeof Assistant.maybePopulateNotification !== \'undefined\'){Assistant.maybePopulateNotification();}\n},Assistant.displayTimeoutMs);}\nif (Assistant.micTimeoutMs){Assistant.micStartListen();Assistant.micTimerId = setTimeout(function(){Assistant.micTimerId = undefined;Assistant.micStopListen();},Assistant.micTimeoutMs);}\n};\nAssistant.toggleElement = function(ele,display){var target = display ?\'\' :\'none\';if (ele.style.display != target){ele.style.display = target;}\n};\nAssistant.updateSuggestionChips = function(isFirstPage,isLastPage,index){var suggestionEles =\ndocument.getElementsByClassName(Assistant.SUGGESTION_CLASS_NAME);var hasSuggestions = false;for (var i = 0;i < suggestionEles.length;i++){var ele = suggestionEles[i];var suggestStr = ele.textContent.toLowerCase();if (suggestStr == \'previous page\' || suggestStr == \'go back\'){Assistant.toggleElement(ele,!isFirstPage);if (!isFirstPage){hasSuggestions = true;}\n}else if (suggestStr == \'next page\' || suggestStr == \'more\' ||\nsuggestStr == \'show more\'){Assistant.toggleElement(ele,!isLastPage);if (!isLastPage){hasSuggestions = true;}\n}else {hasSuggestions = true;}\n}\nAssistant.toggleElement(Assistant.getSuggestionPrompt(),hasSuggestions);};\nAssistant.micStopListen = function(){Assistant.ICON.classList.add(\'stop\');};\nAssistant.micStartListen = function(){Assistant.ICON.classList.remove(\'stop\');};\nAssistant.slideUpPopout = function(){Assistant.POPOUT.classList.add(\'slide-up\');};\nAssistant.slideDownPopout = function(){Assistant.POPOUT.classList.remove(\'slide-up\');};\nAssistant.close = function(){Assistant.slideDownPopout();Assistant.clear();};\nAssistant.closeWithDelay = function(delayMs){delayMs = Math.max(Number(delayMs),0);setTimeout(Assistant.close,delayMs);};\nAssistant.commandMap = new Map([\n[\'keep_showing\',Assistant.keepShowing],[\'stop_mic\',Assistant.micStopListen],[\'hide\',Assistant.slideDownPopout],[\'close\',Assistant.close],[\'close_with_delay\',Assistant.closeWithDelay],]);\nAssistant.registerCommand = function(commandName,commandFunc){commandName = commandName.toLowerCase();if (!Assistant.commandMap.has(commandName))\nAssistant.commandMap.set(commandName,commandFunc);};\nAssistant.runCmd = function(cmdName,arg1,arg2){cmdName = cmdName.toLowerCase();var cmdFunc = Assistant.commandMap.get(cmdName);if (cmdFunc){cmdFunc.apply(this,[arg1,arg2]);}\n};</script> <script>\'use strict\';var e=this;function f(a,b){function c(){}c.prototype=b.prototype;a.o=b.prototype;a.prototype=new c;a.prototype.constructor=a;a.m=function(a,c,n){for(var d=Array(arguments.length-2),h=2;h<arguments.length;h++)d[h-2]=arguments[h];return b.prototype[c].apply(a,d)}};function g(a){return String(a).replace(/\\-([a-z])/g,function(a,c){return c.toUpperCase()})}function k(a){return a.replace(/(^|[\\s]+)([a-z])/g,function(a,c,d){return c+d.toUpperCase()})};var l;a:{var m=e.navigator;if(m){var p=m.userAgent;if(p){l=p;break a}}l=""};var q=-1!=l.indexOf("Opera"),r=-1!=l.indexOf("Trident")||-1!=l.indexOf("MSIE"),t=-1!=l.indexOf("Gecko")&&!(-1!=l.toLowerCase().indexOf("webkit")&&-1==l.indexOf("Edge"))&&!(-1!=l.indexOf("Trident")||-1!=l.indexOf("MSIE"))&&-1==l.indexOf("Edge"),u=-1!=l.toLowerCase().indexOf("webkit")&&-1==l.indexOf("Edge");function v(a,b){a=document.querySelector(a);var c=a.querySelectorAll(b);for(b=0;b<c.length;b++)c[b].onmouseover=function(a){a.target.focus()};a.addEventListener("keydown",function(a){"ArrowUp"!=a.code&&38!=a.keyCode||w();"ArrowDown"!=a.code&&40!=a.keyCode||x();if("ArrowLeft"==a.code||37==a.keyCode){var b=document.activeElement;"expanded-button"===b.className?(b=b.previousElementSibling)&&"expanded-button"===b.className&&b.focus():null!==c&&0<c.length&&c[0].focus()}if("ArrowRight"==a.code||39==a.keyCode)a=\ndocument.activeElement,"expanded-button"===a.className?(a=a.nextElementSibling)&&"expanded-button"===a.className&&a.focus():null!==c&&0<c.length&&c[0].focus()},!1);a.addEventListener("wheel",this.a,!1)}v.prototype.a=function(a){a.deltaY&&(0>a.deltaY?w():x())};function w(){var a=document.activeElement;"disclosure-option-button"===a.className?(a=a.previousElementSibling)&&"disclosure-option-button"===a.className&&a.focus():y()}\nfunction x(){var a=document.activeElement;"disclosure-option-button"===a.className?(a=a.nextElementSibling)&&"disclosure-option-button"===a.className&&a.focus():y()}function y(){var a=document.querySelectorAll(".disclosure-option-button");null!==a&&0<a.length&&(a=a[a.length-1],null!==a&&a.focus())};function z(a){this.data=a||{}}function A(a,b){var c=a.data[b];c||(c=a.data[b]={});return c};function B(a){this.data=a||{}}f(B,z);function C(a){this.data=a||{}}f(C,z);function D(a){this.data=a||{}}f(D,z);function E(){var a=new D;(new C(A(a,"event"))).data.cardHide=!0;return a.data}function aa(a){var b=new D;(new B(A(b,"query"))).data.queryText=a;a=b.data;a.query.queryOrigin="SUGGESTION";return a};function F(a,b,c){if("string"==typeof b)(b=G(a,b))&&(a.style[b]=c);else for(var d in b){c=a;var h=b[d],n=G(c,d);n&&(c.style[n]=h)}}var H={};function G(a,b){var c=H[b];if(!c){var d=g(b);c=d;void 0===a.style[d]&&(d=(u?"Webkit":t?"Moz":r?"ms":q?"O":null)+k(d),void 0!==a.style[d]&&(c=d));H[b]=c}return c};function I(a){this.b=a;this.a=null;J(this)}function K(){e.parent.postMessage(E(),"*")}function J(a){null==a.a&&(a.a=e.setTimeout(function(){F(document.body,"display","none");K()},a.b))}function ba(a){L(a);null==a.a&&(a.a=e.setTimeout(function(){F(document.body,"display","none");K()},3500))}function L(a){null!==a.a&&(e.clearTimeout(a.a),a.a=null)}function M(){var a=N;L(a);J(a)}function O(a){L(a);F(document.body,"display","none");K()};function P(){var a=N,b=this;this.i=a;var c=document.querySelector("#welcome-continue-button"),d=document.querySelector("#acknowledge-card-button"),h=document.querySelector("#privacy-policy-button"),n=document.querySelector("#service-terms-button"),R=document.querySelector("#gdpr-agree-button"),S=document.querySelector("#gdpr-reject-button"),ca=document.querySelector("#partners-option-button"),da=document.querySelector("#services-option-button"),ea=document.querySelector("#setup-later-button");null!==\nc&&c.focus();c.addEventListener("click",this.j,!1);d.addEventListener("click",this.a,!1);h.addEventListener("click",this.c,!1);n.addEventListener("click",this.f,!1);ca.addEventListener("click",this.b,!1);da.addEventListener("click",this.g,!1);ea.addEventListener("click",function(){O(a)});R.addEventListener("click",function(){return fa(b.i)},!1);S.addEventListener("click",function(){O(a)})}\nP.prototype.j=function(){document.querySelector("#welcome-page-panel").style.display="none";document.querySelector("#request-sign-in-panel").style.display="none";document.querySelector("#disclosure-consent-panel").style.display="flex";new v("#disclosure-consent-panel",".disclosure-option-button");document.querySelector("#acknowledge-card-button").focus()};P.prototype.a=function(){document.querySelector("#welcome-page-panel").style.display="none";document.querySelector("#disclosure-consent-panel").style.display="none";document.querySelector("#request-sign-in-panel").style.display="none";document.querySelector("#gdpr-panel").style.display="flex";new v("#gdpr-panel",".disclosure-option-button");document.querySelector("#gdpr-agree-button").focus()};function fa(a){var b=document.querySelector("#disclosure-consent-panel"),c=new XMLHttpRequest,d=ha(b);c.open("POST",b.getAttribute("data-post-url"),!0);c.setRequestHeader("Content-type","application/json; charset=utf-8");c.onreadystatechange=function(){c.readyState===XMLHttpRequest.DONE&&200==c.status?"hide_sign_in"===b.getAttribute("data-display-sign-in-option")?O(a):(document.querySelector("#request-sign-in-panel").style.display="flex",document.querySelector("#setup-later-button").focus(),document.querySelector("#welcome-page-panel").style.display=\n"none",document.querySelector("#disclosure-consent-panel").style.display="none",document.querySelector("#gdpr-panel").style.display="none"):c.readyState===XMLHttpRequest.DONE&&200!=c.status&&(document.querySelector("#error-expanded").showModal(),ba(a))};c.send(JSON.stringify(d))}\nfunction ha(a){var b={};b.name=a.getAttribute("data-consent-name");b.device_model_id=a.getAttribute("data-model-id");b.terms_of_service_link=a.getAttribute("data-terms-link");b.privacy_policy_link=a.getAttribute("data-privacy-link");return b}P.prototype.c=function(){var a=document.querySelector("#disclosure-consent-panel").getAttribute("data-privacy-link");window.parent.postMessage({url:{href:a}},"*")};P.prototype.f=function(){var a=document.querySelector("#disclosure-consent-panel").getAttribute("data-terms-link");window.parent.postMessage({url:{href:a}},"*")};P.prototype.b=function(){var a=document.querySelector("#partners-expanded");a.showModal();var b=a.querySelector("#partners-close-button"),c=a.querySelector("#partner-learn-more-button");b.addEventListener("click",function(){a.close();document.querySelector("#disclosure-consent-panel").style.opacity="1";this.h=document.querySelector("#partners-option-button");this.h.focus()});var d=c.getAttribute("data-partners-link");c.addEventListener("click",function(){window.parent.postMessage({url:{href:d}},"*")});new v("#partners-expanded",".expanded-button");b.focus();document.querySelector("#disclosure-consent-panel").style.opacity="0.3"};P.prototype.g=function(){var a=document.querySelector("#services-expanded");a.showModal();var b=a.querySelector("#services-close-button"),c=a.querySelector("#services-learn-more-button");b.addEventListener("click",function(){a.close();document.querySelector("#disclosure-consent-panel").style.opacity="1";this.l=document.querySelector("#services-option-button");this.l.focus()});var d=c.getAttribute("data-services-link");c.addEventListener("click",function(){window.parent.postMessage({url:{href:d}},"*")});new v("#services-expanded",".expanded-button");b.focus();document.querySelector("#disclosure-consent-panel").style.opacity="0.3"};var ia=[{transform:"translateY(0px)",opacity:1},{transform:"translateY(-10px)",opacity:0}],ja={duration:150,easing:"cubic-bezier(0.17,0.17,0.83,0.83)",fill:"forwards"};function ka(){document.querySelectorAll(".follow-up-query").forEach(function(a){a.addEventListener("click",function(){document.querySelectorAll(".suggestion,.assistant_response").forEach(function(a){a.animate(ia,ja)});e.setTimeout(function(){"followUpQuery"in a.dataset&&e.parent.postMessage(aa(a.dataset.followUpQuery),"*")},150)},!1)})};function Q(){var a=document.querySelector("#assistant-bar"),b=a.querySelectorAll(".suggestion");b.forEach(function(a){a.onmouseover=function(a){a.target.focus()}});var c=document.querySelector("#back-shadow"),d=document.querySelector("#forward-shadow");null!==c&&null!==d&&(F(c,"opacity","0"),F(d,"opacity","0"));c=document.querySelector("#assistant-scroll-bar-container");0<b.length&&900<c.offsetWidth&&(b[0].addEventListener("focus",this.a,!1),b[b.length-1].addEventListener("focus",this.f,!1),this.a());a.addEventListener("keydown",this.b,!1);a.addEventListener("wheel",this.c,!1)}Q.prototype.a=function(){var a=document.querySelector("#assistant-scroll-bar");null!==a&&F(a,"justify-content","flex-start");a=document.querySelector("#back-shadow");var b=document.querySelector("#forward-shadow");null!==a&&F(a,"opacity","0");null!==b&&F(b,"opacity","1")};Q.prototype.f=function(){var a=document.querySelector("#assistant-scroll-bar");null!==a&&F(a,"justify-content","flex-end");a=document.querySelector("#back-shadow");var b=document.querySelector("#forward-shadow");null!==a&&F(a,"opacity","1");null!==b&&F(b,"opacity","0")};Q.prototype.b=function(a){"ArrowRight"!=a.code&&39!=a.keyCode||T();"ArrowLeft"!=a.code&&37!=a.keyCode||U()};Q.prototype.c=function(a){a.deltaY&&(0>a.deltaY?U():T())};function U(){var a=document.activeElement;"suggestion follow-up-query"===a.className?V(a.previousElementSibling):W()}function T(){var a=document.activeElement;"suggestion follow-up-query"===a.className?V(a.nextElementSibling):W()}function V(a){a&&"suggestion follow-up-query"===a.className&&a.focus()}function W(){var a=document.querySelector("#assistant-bar");null!==a&&(a=a.querySelector(".suggestion"),null!==a&&a.focus())};function X(){new Q;e.addEventListener("keydown",this.a,!1)}X.prototype.a=function(a){if(document.activeElement!==document.body&&document.activeElement!==document.querySelector("#initial-focus")){if(("ArrowUp"==a.code||38==a.keyCode)&&document.querySelector("#assistant-bar").contains(document.activeElement)){var b=document.querySelector("#tv-carousel");b&&b.focus()}("ArrowDown"==a.code||40==a.keyCode)&&document.querySelector("#assistant-card-content").contains(document.activeElement)&&W()}else Y()};function Y(){var a=document.querySelector("#tv-carousel");a?a.focus():W()};var N;function Z(a){var b=document.getElementById("assistant-full-screen-view");if(null==b)b=!0;else{a:{var c=9==b.nodeType?b:b.ownerDocument||b.document;if(c.defaultView&&c.defaultView.getComputedStyle&&(c=c.defaultView.getComputedStyle(b,null))){c=c.zIndex||c.getPropertyValue("zIndex")||"";break a}c=""}b=0>(c||(b.currentStyle?b.currentStyle.zIndex:null)||b.style&&b.style.zIndex)}return 461==a.keyCode&&b}\ne.addEventListener("load",function(a){F(document.querySelector("#assistant-main-cards"),"display","block");var b=document.querySelector("#popout"),c;"customizeTimeout"in b.dataset&&(c=b.dataset.customizeTimeout);N=0<c?new I(c):document.querySelector(".aog-as-bar")?new I(6E5):document.querySelector("#tv-carousel")?new I(36E5):document.querySelector(".disclosure-flow-panel")?new I(12E4):new I(6E4);document.querySelector(".disclosure-flow-panel")?new P:(new X,"disableInitialFocus"in b.dataset?document.querySelector("#initial-focus").focus():Y());document.body.onclick=function(a){a.target===document.body||a.target===document.querySelector("#assistant-shadow")?O(N):M()};document.body.onmousemove=function(){M()};document.body.onmousewheel=function(){M()};document.body.onkeydown=function(a){Z(a)&&O(N);M()};document.body.onkeypress=function(){Z(a)&&O(N);M()};ka()});</script>  <div data-customize-timeout="0" id="popout">  <div id="assistant-main-cards" style="display:none"> <div class="popout-as-3p-bar"><style>.third_party_provider_logo{width:1.6em;height:1.6em;margin:auto 0px;padding-right:12px}.third_party_provider_name{color:#ffffff;line-height:1.4em;margin:auto 0px}.aog-as-bar{background-color:rgba(25,25,25,.97);display:flex;font-size:0.75em;padding-left:112px;height:3em;width:100% box-sizing:border-box}</style>  </div> <div class="popout-content" id="assistant-card-content"><style>.show_text_container{width:100%;padding:41px 0px 41px 112px;box-sizing:border-box}.show_text_content{font-size:1em;line-height:1.4em;width:24.7em;color:#ffffff}</style>  <div> <div class="disclosure-flow-panel"><style>.disclosure-card-panel{box-sizing:border-box;height:1080px;width:1920px}.disclosure-panel-text{margin:230px 68px auto 112px;width:920px}.disclosure-panel-buttons{margin:190px auto auto 0px;width:596px}.assistant-setup-home{height:271px;margin:406px auto auto 48px;width:698px}.assistant-tv-logo{height:144px;width:144px}.panel-title{color:#ffffff;font-size:72px;margin-top:24px;width:inherit}.panel-description{color:rgba(255,255,255,0.7);font-size:32px;line-height:40px;margin-top:24px;white-space:pre-wrap;width:inherit}.gdpr-panel-title{color:#ffffff;font-size:52px;margin-top:24px;width:inherit}.gdpr-panel-description{color:rgba(255,255,255,0.7);font-size:24px;margin-top:24px;white-space:pre-wrap;width:inherit}.panel-instruction{color:rgba(255,255,255,0.7);font-size:24px;margin-top:24px}.option-button{background:#4F86EC;border:none;border-radius:4px;color:#ffffff;font-size:40px;height:96px;line-height:40px;margin-top:300px;padding-left:40px;text-align:left;width:430px}.option-button:focus{outline:none}.disclosure-option-button{background-color:transparent;border:none;border-radius:4px;color:#ffffff;font-size:32px;line-height:40px;margin-top:24px;padding:27px 36px 29px 36px;text-align:left;width:708px}.disclosure-option-button:focus{background-color:#4F86EC;outline:none}.option-button-title{color:#ffffff;display:flex;font-size:32px}.option-button-description{color:rgba(255,255,255,0.7);font-size:28px}.arrow-right{height:32px;margin:6px auto auto 24px;width:32px}.open-in-new{height:32px;margin:6px auto auto 24px;width:32px}.open-in-new-black{height:32px;margin-left:12px;width:32px}.learn-more-button-text{display:flex}.expanded-prompt{background-color:#EEEEEE;width:992px}.expanded-prompt-title{color:#202124;font-size:40px;margin:54px auto auto 54px}.expanded-prompt-description{color:#3C4043;font-size:28px;margin-left:54px;padding-top:24px;width:884px}.expanded-button-panel{margin-right:40px;text-align:right;white-space:nowrap}.expanded-button{background-color:transparent;border:none;color:#202124;display:inline-block;font-size:28px;height:80px;margin-left:32px;min-width:220px;text-align:center}.expanded-button:focus{background-color:#FFFFFF;box-shadow:inset 0 0 0 1px transparent,0 0 3px 1px grey;outline:none}.error-prompt{background-color:rgba(39,41,51,0.9);border:none;border-radius:100px;bottom:141px;color:#EEEEEE;font-size:36px;text-align:center;width:1176px}.gdpr_details_bullets{margin-top:48px}</style> <div class="disclosure-card-panel" id="welcome-page-panel" style="display:flex"> <div class="disclosure-panel-text"> <img class="assistant-tv-logo" src="https://lh5.googleusercontent.com/EjBYXAInrtwlTu2X4-9c__VY_Jl-w-u8bd7yYB5h_nOiAlnG6YBtx5TSPfzETSzD9Yw5YtALxMB3dJjXExZ6O7qoCVHjAfm5auredNYYxC7ZHUgJxMwEGjBMQqiSF74UnI8GY4uo"> <div class="panel-title">Meet your Google Assistant</div> <div class="panel-description">Ask it questions. Tell it to do things. It\'s always ready to help. Access your calendar and photos, control smart devices, and ask about anything from the weather to sports. All with just your voice.</div> </div> <div class="disclosure-panel-buttons"> <button class="option-button" id="welcome-continue-button">Continue</button> </div> </div> <div class="disclosure-card-panel" data-consent-name="projects//devices/REDACTED/disclosureConsents/0.1" data-display-sign-in-option="hide_sign_in" data-model-id="voxpi2-redacted-voice-kit" data-post-url="https://embeddedassistant.googleapis.com/v1alpha2/projects//devices/REDACTED/disclosureConsents/?key=REDACTED" data-privacy-link="https://myaccount.google.com/privacypolicy" data-terms-link="https://myaccount.google.com/termsofservice" id="disclosure-consent-panel" style="display:none"> <div class="disclosure-panel-text"> <img class="assistant-tv-logo" src="https://lh5.googleusercontent.com/EjBYXAInrtwlTu2X4-9c__VY_Jl-w-u8bd7yYB5h_nOiAlnG6YBtx5TSPfzETSzD9Yw5YtALxMB3dJjXExZ6O7qoCVHjAfm5auredNYYxC7ZHUgJxMwEGjBMQqiSF74UnI8GY4uo"> <div class="gdpr-panel-title">When you speak to Google, you\'re speaking to Partner too.</div> <div class="panel-description">Google and Partner use what you say and your location to determine who can best help you. Both their terms of service and privacy policy apply.</div> </div> <div class="disclosure-panel-buttons"> <button class="disclosure-option-button" id="partners-option-button"> <div class="option-button-title"> <div class="option-button-title-text">Google Partners</div> <img class="arrow-right" src="https://www.gstatic.com/actions/devices_platform/keyboard_arrow_right.svg"> </div> <div class="option-button-description">Google partners are businesses that have a commercial relationship with Google.</div></button> <button class="disclosure-option-button" id="services-option-button"> <div class="option-button-title"> <div class="option-button-title-text">Services and Your Privacy</div> <img class="arrow-right" src="https://www.gstatic.com/actions/devices_platform/keyboard_arrow_right.svg"></div> <div class="option-button-description">Google sends services that you talk to a unique code.</div></button> <button class="disclosure-option-button" id="service-terms-button" style="display:flex"> <div class="button-text" data-terms-link="https://myaccount.google.com/termsofservice">Google Terms of Service</div> <img class="open-in-new" src="https://www.gstatic.com/actions/devices_platform/open_in_new_white.svg"></button> <button class="disclosure-option-button" id="privacy-policy-button" style="display:flex"> <div class="button-text" data-privacy-link="https://myaccount.google.com/privacypolicy">Google Privacy Policy</div> <img class="open-in-new" src="https://www.gstatic.com/actions/devices_platform/open_in_new_white.svg"> </button> <button class="disclosure-option-button" id="acknowledge-card-button">I understand</button> </div> </div> <div class="disclosure-card-panel" id="gdpr-panel" style="display:none"> <div class="disclosure-panel-text"> <img class="assistant-tv-logo" src="https://lh5.googleusercontent.com/EjBYXAInrtwlTu2X4-9c__VY_Jl-w-u8bd7yYB5h_nOiAlnG6YBtx5TSPfzETSzD9Yw5YtALxMB3dJjXExZ6O7qoCVHjAfm5auredNYYxC7ZHUgJxMwEGjBMQqiSF74UnI8GY4uo"> <div class="gdpr-panel-title">Allow Google &amp; Partner to share information with each other</div> <div class="gdpr-panel-description">To activate the Google Assistant, allow Partner to share your voice commands and related info with Google, and allow Google to share specific info with Partner. This info lets Google work out whether Partner or your Google Assistant should respond, based on your request and if it\'s related to what your TV can do. Usage of this info is subject to Google\'s Privacy Policy and Terms of Use.</div> <div class="panel-instruction">If you allow this, you\'ll activate the Google Assistant and Partner Voice Services. If you don’t, voice services won’t work. You can turn this off at any time. Learn more at g.co/assistant/disable</div> </div> <div class="disclosure-panel-buttons"> <div class="data_share_instruction"> <div class="option-button-title">The shared information is about:</div> </div> <div class="gdpr_details_bullets" id="activity-account"> <div class="option-button-title">Your activity and account</div> <div class="option-button-description">Your spoken requests and their transcripts, your email address, profile photo, and other info to help you sign in to or out of your account.</div> </div> <div class="gdpr_details_bullets" id="user-device"> <div class="option-button-title">Your TV</div> <div class="option-button-description">This TV\'s location (its IP address or a physical address added by you), its unique ID (factory resetting the TV resets its ID), and its state, e.g. muted.</div> </div> <button class="disclosure-option-button" id="gdpr-agree-button">Allow</button> <button class="disclosure-option-button" id="gdpr-reject-button">No thanks</button> </div> </div> <div class="disclosure-card-panel" id="request-sign-in-panel" style="display:none"> <div class="disclosure-panel-text"> <img class="assistant-tv-logo" src="https://lh5.googleusercontent.com/EjBYXAInrtwlTu2X4-9c__VY_Jl-w-u8bd7yYB5h_nOiAlnG6YBtx5TSPfzETSzD9Yw5YtALxMB3dJjXExZ6O7qoCVHjAfm5auredNYYxC7ZHUgJxMwEGjBMQqiSF74UnI8GY4uo"> <div class="panel-title">Get the full Assistant experience</div> <div class="panel-description">On your phone, just tell your Assistant to "set up my Assistant device". \n \nDon\'t have the Assistant yet? Visit g.co/assistant/setup</div> </div> <div class="disclosure-panel-buttons"> <button class="option-button" id="setup-later-button">Set up later</button> </div> </div> <dialog class="expanded-prompt" id="partners-expanded"> <section> <div class="expanded-prompt-title">Google Partners</div> <div class="expanded-prompt-description">Google partners are businesses that have a commercial relationship with Google. The Google Assistant can work with Google partners to help you get things done, whether it\'s buying movie tickets or getting your sink repaired.</div> </section> <menu class="expanded-button-panel"> <button class="expanded-button" data-partners-link="https://support.google.com/assistant/?p=google_partners" id="partner-learn-more-button"> <div class="learn-more-button-text"> <div>Learn more</div> <img class="open-in-new-black" src="https://www.gstatic.com/actions/devices_platform/open_in_new_black.svg"> </div> </button> <button class="expanded-button" id="partners-close-button">Close</button> </menu> </dialog> <dialog class="expanded-prompt" id="services-expanded"> <section> <div class="expanded-prompt-title">Services and Your Privacy</div> <div class="expanded-prompt-description">Google sends services that you talk to a unique code. That way, services can still remember things like your preferences during conversations. You can view and manage these conversations in the My Activity section of your Google Account settings. You can also reset the code for each service with the \'Forget me\' option in your Google Assistant settings.</div> </section> <menu class="expanded-button-panel"> <button class="expanded-button" data-services-link="https://support.google.com/assistant/?p=reset_id" id="services-learn-more-button"> <div class="learn-more-button-text"> <div>Learn more</div> <img class="open-in-new-black" src="https://www.gstatic.com/actions/devices_platform/open_in_new_black.svg"> </div> </button> <button class="expanded-button" id="services-close-button">Close</button> </menu> </dialog> <dialog class="error-prompt" id="error-expanded">Something\'s gone wrong. Please try again.</dialog> </div> </div>  </div> <div class="popout-asbar" id="assistant-bar" tabindex="-1"><style>.assistant-bar-content{display:flex;background-color:rgba(33,33,33,.99);height:144px;padding:0 112px 0 112px;width:100% box-sizing:border-box;white-space:nowrap}#assistant-scroll-bar{display:flex;margin:auto 0;overflow:hidden;padding-left:48px;padding-right:24px;position:relative}#assistant-scroll-bar-container{display:flex;height:inherit;margin:0px 48px;overflow:hidden;position:relative;white-space:nowrap}#assistant-scroll-bar-container .scroll{background-color:green;display:block;height:inherit;position:absolute;top:0px;width:48px}#assistant-scroll-bar-container .scroll.forward{background:linear-gradient(90deg,rgba(33,33,33,0),rgba(33,33,33,.99));right:0;opacity:1}#assistant-scroll-bar-container .scroll.back{background:linear-gradient(90deg,rgba(33,33,33,.99),rgba(33,33,33,0));left:0;opacity:0}.assistant_response{color:#ffffff;font-size:28px;margin:auto 0px}.suggestion{background:#303030;border:none;border-radius:22px;color:#ffffff;font-size:24px;height:48px;line-height:32px;outline:none;margin:0 32px 0 0;padding:0px 21px}.suggestion:focus{background-color:#424242;-ms-transform:scale(1.1,1.1);-webkit-transform:scale(1.1,1.1);transform:scale(1.1,1.1);outline:none}.assistant-word-icon{height:47px;margin:auto 0px auto auto}</style>  </div> </div> </div>  <script>\nwindow.Assistant.timeoutMilliSeconds = 30000;</script>  <script>(function(){var displayTimeoutMs=60000;var micTimeoutMs=0;var isUsingRelativeIndex=false;var cardMessages=[{key:\'card_hide\',value:\'{\\n  \\x22event\\x22: {\\n    \\x22cardHide\\x22: true\\n  }\\n}\\n\'}];Assistant.updateIsUsingRelativeIndex(isUsingRelativeIndex);})();</script> </html>'}}], 'devices': [{'id': 'REDACTED'}]}]}, 'intent': 'action.devices.EXECUTE'}]}
jlawrence124 commented 6 years ago

Same thing on my end @watou

dmitriykovalev commented 6 years ago

Seems to be this issue in the Assistant library: https://github.com/googlesamples/assistant-sdk-python/issues/274