简体   繁体   中英

How to install Google Assistant SDK on MacOSX

Google Assistant SDK列表的文档Raspberry Pi具有受支持的平台, Python示例是否与MacOSX兼容?

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.

  • Download Python 3.x for MacOSX
  • 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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM