LoginSignup
5
4

More than 5 years have passed since last update.

MacでGoogle Assistant SDKを動かす

Last updated at Posted at 2017-10-09

Google Homeがどんなものか知りたくて、以下を参考にGoogle Assistant SDKをMacで動かしてみました。
ちょっと引っかかったので、メモしておきます。

  • OS X 10.11.6 (El Capitan)
  • python 3.6 (anaconda)

How to get Google Assistant on your Windows, Mac, or Linux Machine

2017/10/09 現在、導入はこれでOKだったのですが、アシスタントを動かすコマンドは googlesamples-assistant-pushtotalk となっていました。
エンターキーを押すとアシスタントが聴いてくれて、しゃべり終わると音声で返答してくれます(英語)。

$ googlesamples-assistant-pushtotalk
INFO:root:Connecting to embeddedassistant.googleapis.com
2017-10-09 10:44:21.699 python[74442:7690850] 10:44:21.698 WARNING:  140: This application, or a library it uses, is using the deprecated Carbon Component Manager for hosting Audio Units. Support for this will be removed in a future release. Also, this makes the host incompatible with version 3 audio units. Please transition to the API's in AudioComponent.h.
Press Enter to send a new request...
INFO:root:Recording audio request.
INFO:root:End of audio request detected
INFO:root:Transcript of user request: "OK Google good morning".
INFO:root:Playing assistant response.
WARNING:root:SoundDeviceStream write underflow (size: 1600)
INFO:root:Finished playing assistant response.
Press Enter to send a new request...
5
4
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
5
4