While the Google Assistant SDK samples have been designed to work on Raspberry Pi, the Python samples primarly use sounddevice and grpcio packages, and both provide python wheels for MacOSX, so it should work with minimal effort.
Create a virtualenv
python3 -m venv env env/bin/python -m pip install --upgrade pip setuptools source env/bin/activate
Install the SDK
(env) $ pip install google-assistant-sdk[samples]
Run the sample
(env) $ googlesamples-assistant-pushtotalk
我有一个用Go在Mac上运行的Go语言编写的Google Assistant演示(也应该在Windows上也可以编译) https://github.com/mattetti/ok-go
I've got a native macOS app working. It sits in the menu bar and accepts commands. However, it is written in Swift 3.1, not Python. You can find it here
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.