Skip to content
This repository was archived by the owner on Oct 19, 2023. It is now read-only.

Fix mandatory parameters and add textinput example #191

Merged
merged 3 commits into from
Feb 23, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 10 additions & 5 deletions google-assistant-sdk/googlesamples/assistant/grpc/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -71,29 +71,34 @@ Run the samples
--product-name 'Assistant SDK light' \
--description 'Assistant SDK light device' \
--device 'my-device-identifier' \
--nickname 'My Assistant Light'
--nickname 'My Assistant Light' \
--client-type SERVICE

*Note: The device model identifier must be globally unique, and device instance identifier must be unique within the Google Developer Project associated with the device.*

- Run the push to talk sample. The sample records a voice query after a key press and plays back the Google Assistant's answer::

python -m pushtotalk --device-id 'my-device-identifier'
python -m pushtotalk --device-id 'my-device-identifier' --device-model-id 'my-model-identifier'

- Try some Google Assistant voice query like "What time is it?" or "Who am I?".

- Try a device action query like "Turn <nickname / model product name> on".

- Run in verbose mode to see the gRPC communication with the Google Assistant API::

python -m pushtotalk --device-id 'my-device-identifier' -v
python -m pushtotalk --device-id 'my-device-identifier' --device-model-id 'my-model-identifier' -v

- Send a pre-recorded request to the Assistant::

python -m pushtotalk --device-id 'my-device-identifier' -i in.wav
python -m pushtotalk --device-id 'my-device-identifier' --device-model-id 'my-model-identifier' -i in.wav

- Save the Assistant response to a file::

python -m pushtotalk --device-id 'my-device-identifier' -o out.wav
python -m pushtotalk --device-id 'my-device-identifier' --device-model-id 'my-model-identifier' -o out.wav

- Send text requests to the Assistant::

python -m textinput --device-id 'my-device-identifier' --device-model-id 'my-model-identifier'

Troubleshooting
---------------
Expand Down