We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aa3f673 commit 9217a2bCopy full SHA for 9217a2b
README.rst
@@ -211,6 +211,17 @@ You can use the corresponding device ID to select a desired device by assigning
211
to `sounddevice.default.device` or by passing it as *device* argument to
212
`sounddevice.play()`, `sounddevice.Stream()` etc.
213
214
+Instead of the numerical device ID, you can also use a space-separated list of
215
+case-insensitive substrings of the device name (and the host API name, if
216
+needed). See `sounddevice.default.device` for details.
217
+
218
+.. code:: python
219
220
+ import sounddevice as sd
221
+ sd.default.samplerate = 44100
222
+ sd.default.device = 'digital output'
223
+ sd.play(myarray)
224
225
Callback Streams
226
^^^^^^^^^^^^^^^^
227
0 commit comments