Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Input device names truncated, along with stuttery audio #274

Open
pl4sma2389 opened this issue Nov 16, 2023 · 2 comments
Open

Input device names truncated, along with stuttery audio #274

pl4sma2389 opened this issue Nov 16, 2023 · 2 comments

Comments

@pl4sma2389
Copy link

pl4sma2389 commented Nov 16, 2023

I know this looks like it should be two separate issues, but bear with me...

On my system (Win11), the following code outputs some unexpected results:

from pedalboard.io import AudioStream

print("Inputs:", AudioStream.input_device_names, "\nOutputs:", AudioStream.output_device_names)

...outputs:

Inputs: ['Primary Sound Capture Driver', 'Mic in at rear panel (Pink) (Re', 'Microphone (NVIDIA Broadcast)', 'Microphone (Steam Streaming Mic', 'CABLE Output (VB-Audio Virtual'] 
Outputs: ['Primary Sound Driver', 'CABLE Input (VB-Audio Virtual Cable)', 'Speakers (Steam Streaming Speakers)', 'Speakers (Steam Streaming Microphone)', 'KW272U (NVIDIA High Definition Audio)', 'Speakers (NVIDIA Broadcast)', 'Speakers (Realtek(R) Audio)']

This output is unexpected in that the names of some devices are truncated (e.g. what should be "CABLE Output (VB-Audio Virtual Cable)" has become "CABLE Output (VB-Audio Virtual"). There are also two extraneous devices listed: 'Primary Sound Capture Driver' and 'Primary Sound Driver'.

What's strange about this is that this issue started seemingly at random during my investigation of my other issue #268. I noticed it after making no changes to my code, re-running the code errored out with an error message ValueError: No such device: CABLE Output (VB-Audio Virtual Cable). Changing my code to reference the new, shortened name restored audio, but the audio was very stuttery; sharp pops could be heard very frequently, a similar effect to if you turned the sample buffer time down too low on your DAW and played some sounds.

My uneducated guess would be that Pedalboard/JUCE started using the wrong sound device driver to handle the audio, such as WASAPI instead of DirectSound, or some other combination (I don't know what Pedalboard is supposed to be using, and I don't know what it is using now on my system.) That might explain all issues here: the shortened audio device names, the extraneous devices, and the stuttery audio.

This error has persisted across restarts and across different Python versions (3.10 and 3.12 are what I have tested).

@PaxGriefs
Copy link

I have the exact same issue did you find a solution?

@pl4sma2389
Copy link
Author

I have the exact same issue did you find a solution?

This isn't Reddit. If an issue is open, that means the problem still exists. Additionally, if an issue is closed, it doesn't necessarily mean a solution was found.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants