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

Commit 96a583e

Browse files
authored
Merge pull request #191 from lcaggio/master
Fix mandatory parameters and add textinput example
2 parents 0f5884a + 962f474 commit 96a583e

File tree

1 file changed

+10
-5
lines changed
  • google-assistant-sdk/googlesamples/assistant/grpc

1 file changed

+10
-5
lines changed

google-assistant-sdk/googlesamples/assistant/grpc/README.rst

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -71,29 +71,34 @@ Run the samples
7171
--product-name 'Assistant SDK light' \
7272
--description 'Assistant SDK light device' \
7373
--device 'my-device-identifier' \
74-
--nickname 'My Assistant Light'
74+
--nickname 'My Assistant Light' \
75+
--client-type SERVICE
7576

7677
*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.*
7778

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

80-
python -m pushtotalk --device-id 'my-device-identifier'
81+
python -m pushtotalk --device-id 'my-device-identifier' --device-model-id 'my-model-identifier'
8182

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

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

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

88-
python -m pushtotalk --device-id 'my-device-identifier' -v
89+
python -m pushtotalk --device-id 'my-device-identifier' --device-model-id 'my-model-identifier' -v
8990

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

92-
python -m pushtotalk --device-id 'my-device-identifier' -i in.wav
93+
python -m pushtotalk --device-id 'my-device-identifier' --device-model-id 'my-model-identifier' -i in.wav
9394

9495
- Save the Assistant response to a file::
9596

96-
python -m pushtotalk --device-id 'my-device-identifier' -o out.wav
97+
python -m pushtotalk --device-id 'my-device-identifier' --device-model-id 'my-model-identifier' -o out.wav
98+
99+
- Send text requests to the Assistant::
100+
101+
python -m textinput --device-id 'my-device-identifier' --device-model-id 'my-model-identifier'
97102

98103
Troubleshooting
99104
---------------

0 commit comments

Comments
 (0)