Skip to content

Commit 9b2e79e

Browse files
committed
DOCS: Add "python -m sounddevice" to README
1 parent f8c1c07 commit 9b2e79e

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

README.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,10 @@ Device Selection
199199
In many cases, the default input/output device(s) will be the one(s) you want,
200200
but it is of course possible to choose a different device.
201201
Use `sounddevice.query_devices()` to get a list of supported devices.
202+
The same list can be obtained from a terminal by typing the command ::
203+
204+
python -m sounddevice
205+
202206
You can use the corresponding device ID to select a desired device by assigning
203207
to `sounddevice.default.device` or by passing it as *device* argument to
204208
`sounddevice.play()`, `sounddevice.Stream()` etc.

sounddevice.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -543,11 +543,11 @@ def query_devices(index=None):
543543
544544
Notes
545545
-----
546-
The list of devices can also be printed in a terminal:
546+
The list of devices can also be displayed in a terminal:
547547
548548
.. code-block:: sh
549549
550-
$ python -m sounddevice
550+
python -m sounddevice
551551
552552
Examples
553553
--------

0 commit comments

Comments
 (0)