Spaces:
Running
Running
Download tests/check_device_details.py from Boopster/reachy_mini_danceml: direct link, hf CLI and curl.
- Browser
- Download file 507 Bytes
-
https://huggingface.co/spaces/Boopster/reachy_mini_danceml/resolve/main/tests/check_device_details.py
- Command line
-
hf download hf://spaces/Boopster/reachy_mini_danceml/tests/check_device_details.py
-
curl -L -o check_device_details.py https://huggingface.co/spaces/Boopster/reachy_mini_danceml/resolve/main/tests/check_device_details.py
507 Bytes
| import sounddevice as sd | |
| print(f"Default input device: {sd.default.device[0]}") | |
| print("Searching for 'Reachy Mini Audio'...") | |
| devices = sd.query_devices() | |
| for i, dev in enumerate(devices): | |
| if "Reachy Mini Audio" in dev['name']: | |
| print(f"\nFOUND DEVICE {i}: {dev['name']}") | |
| print(f" Max Input Channels: {dev['max_input_channels']}") | |
| print(f" Default Sample Rate: {dev['default_samplerate']}") | |
| print(f" Host API: {dev['hostapi']}") | |
| print(f" Full Info: {dev}") | |