如何在MacOSX上安装Google Assistant SDK

时间:2017-04-27 17:06:08

标签: python macos google-assistant-sdk

Google Assistant SDK列表的文档Raspberry Pi有一个支持的平台,Python samples是否与MacOSX兼容?

3 个答案:

答案 0 :(得分:1)

虽然Google Assistant SDK样本设计用于Raspberry Pi,但Python样本主要使用sounddevicegrpcio包,并且都为MacOSX提供python轮,因此它应该以最小的方式工作努力。

  • 下载Python 3.x for MacOSX
  • 创建virtualenv

    python3 -m venv env
    env/bin/python -m pip install --upgrade pip setuptools
    source env/bin/activate
    
  • 安装SDK

    (env) $ pip install google-assistant-sdk[samples]
    
  • 运行示例

    (env) $ googlesamples-assistant-pushtotalk
    

答案 1 :(得分:1)

我在Mac上运行Go编写的Google智能助手演示(并且应该可以在Windows上正常编译) https://github.com/mattetti/ok-go

答案 2 :(得分:0)

我有一个原生的macOS应用程序正在运行。它位于菜单栏中并接受命令。但是,它是用Swift 3.1编写的,而不是Python。你可以找到它here