Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to enable new "read it" function of Google Assistant API with Python?

Recently Google released a new "Read it" function of Google Assistant.

How can I try it with Python? I enabled Google Assistant API in console and created service account credentials. The documentation does not provide any Python implementation.

I'd like to run a simple "Hello world" example: send a text and get a wav file.

like image 990
F. Vosnim Avatar asked May 03 '20 08:05

F. Vosnim


People also ask

Is there an API for Google Assistant?

The Google Assistant Service exposes a low level API that lets you directly manipulate the audio bytes of an Assistant request and response. Bindings for this API can be generated for languages like Node. js, Go, C++, Java for all platforms that support gRPC.


1 Answers

Google uses the term "Assistant" somewhat loosely, and a feature being available on the Assistant for one platform isn't always available on others, even if there is no obvious reason for it not to be.

Reading long-form audio may seem to make sense to be available on all audio Assistant platforms - but it isn't. At least as of this writing, it seems to only be available on Assistant for Android platforms. This suggests that it is a feature of that implementation specifically, and not a full Assistant feature.

Also note that the Assistant SDK is officially listed for hobbyist use only. Production hardware with the Assistant seems to use a different development platform that handles other features including streaming audio.

like image 138
Prisoner Avatar answered Sep 23 '22 23:09

Prisoner