Skip to content

Commit efefb9a

Browse files
committed
docs: change the commant for device query
1 parent 0ad433c commit efefb9a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/human_robot_interface/voice_interface.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ The Agent utilises sounddevice module to access user's microphone, by default th
1818
To get information about available sounddevices use:
1919

2020
```
21-
python -c "import sounddevice; sounddevice.query_devices()"
21+
python -c "import sounddevice; print(sounddevice.query_devices())"
2222
```
2323

2424
The device can be identifed by name and passed to the configuration.
@@ -35,10 +35,10 @@ The Agent listens for information on two topics:
3535
`/voice_commands`: `std_msgs/msg/String` - containing control commands, to pause current playback (`{"data": "pause"}`), start/continue playback (`{"data": "play"}`), or stop the playback and drop the current playback queue (`{"data": "play"}`).
3636

3737
The Agent utilises sounddevice module to access user's speaker, by default the `"default"` sound device is used.
38-
To get information about available sounddeives use:
38+
To get a list of names of available sound devices use:
3939

4040
```
41-
python -c "import sounddevice; sounddevice.query_devices()"
41+
python -c 'import sounddevice as sd; print([x["name"] for x in list(sd.query_devices())])'
4242
```
4343

4444
The device can be identifed by name and passed to the configuration.

0 commit comments

Comments
 (0)