【问题标题】:How to install Google Assistant SDK on MacOSX如何在 MacOSX 上安装 Google Assistant SDK
【发布时间】:2017-04-27 17:06:08
【问题描述】:

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

【问题讨论】:

    标签: python macos google-assistant-sdk


    【解决方案1】:

    我有一个用 Go 编写的在 Mac 上运行的 Google Assistant 演示(并且应该也可以在 Windows 上编译) https://github.com/mattetti/ok-go

    【讨论】:

      【解决方案2】:

      虽然 Google 智能助理 SDK 示例设计为在 Raspberry Pi 上运行,但 Python 示例主要使用 sounddevicegrpcio 包,并且都为 MacOSX 提供了 Python 轮子,因此它应该可以轻松运行。

      • 下载Python 3.x for MacOSX
      • 创建一个虚拟环境

        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
        

      【讨论】:

      • 你实际测试过还是只是复制粘贴?
      • 没用Error while finding spec for 'googlesamples.assistant' (<class 'ValueError'>: googlesamples.assistant.__spec__ is None)
      • @krisdestruction 更新了 sn-p 以匹配 SDK 的最新版本。
      【解决方案3】:

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

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 2014-04-22
        • 1970-01-01
        • 2023-01-24
        • 2018-06-07
        • 2021-01-03
        • 1970-01-01
        • 2020-03-23
        • 1970-01-01
        相关资源
        最近更新 更多