def tell_google(cmd: str, *, recognize_speech=True) -> GoogleResponse:
+ """Alias for ask_google."""
return ask_google(cmd, recognize_speech=recognize_speech)
def ask_google(cmd: str, *, recognize_speech=True) -> GoogleResponse:
+ """Send a command string to Google via the google_assistant_bridge as the
+ user google_assistant_username and return the response. If recognize_speech
+ is True, perform speech recognition on the audio response from Google so as
+ to translate it into text (best effort, YMMV).
+ """
logging.debug(f"Asking google: '{cmd}'")
payload = {
"command": cmd,