python-sounddevice icon indicating copy to clipboard operation
python-sounddevice copied to clipboard

Audio device names longer than 32 characters are truncated.

Open daeny2 opened this issue 4 months ago • 2 comments

Hello,

Long audio device names are being truncated. Could you please check this? Thank you.

os : windows

sd_lists = sounddevice.query_devices()

for device_info in sd_lists:
    idx = device_info['index']
    name = device_info['name']  # <-- truncated ,,,,,

daeny2 avatar Sep 12 '25 01:09 daeny2

The Python wrapper doesn't truncate any names, I think those are truncated either by the underlying PortAudio library of by whatever audio backend you are using.

Please ask at https://github.com/PortAudio/portaudio/issues.

mgeier avatar Sep 22 '25 18:09 mgeier

It's a matter of the underlying protocol, mme supports 31 characters, WASAPI supports 63 characters, which actually has little to do with sd

FYZAFH avatar Nov 06 '25 02:11 FYZAFH