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

Allow user to select input, output audio devices #48

Merged
merged 2 commits into from
Aug 21, 2023
Merged

Conversation

vivekuppal
Copy link
Owner

@vivekuppal vivekuppal commented Aug 19, 2023

Allow user to select input, output audio devices.
Audio devices can be listed using the -l command line argument. python main.py -l
Sample output is like this

List all audio drivers and devices on this machine

| ~ Audio Drivers on this machine ~ |

 ^ # INDEX # DRIVER TYPE #  DEVICE COUNT # NAME
-----------------------------------------------
 »   [0]   |      2      |       9       |  MME
 »   [1]   |      1      |       9       |  Windows DirectSound
 »   [2]   |      13     |       10      |  Windows WASAPI

| ~ Audio Devices on this machine ~ |

 ^ # INDEX # HOST API INDEX # LOOPBACK # NAME
---------------------------------------------
 »   [0]          0            False     Microsoft Sound Mapper - Input
 »   [1]          0            False     Microphone (Voicemod Virtual Au
 »   [2]          0            False     Headset Earphone (Corsair HS60
 »   [3]          0            False     DELL U3219Q (NVIDIA High Defini
 »   [4]          0            False     Line (Voicemod Virtual Audio De
 »   [5]          1            False     Primary Sound Capture Driver
 »   [6]         1            False     Microphone (Voicemod Virtual Audio Device (WDM))
 »   [7]         1            False     Headset Microphone (Corsair HS60 PRO Surround USB Sound Adapter)
 »   [8]         1            False     Microphone (Logitech BRIO)
 »   [9]         1            False     Microphone (High Definition Audio Device)
 »   [10]         1            False     Primary Sound Driver
 »   [11]         1            False     Headset Earphone (Corsair HS60 PRO Surround USB Sound Adapter)
 »   [12]         1            False     DELL U3219Q (NVIDIA High Definition Audio)
 »   [13]         2            False     Microphone (Logitech BRIO)
 »   [14]         2            False     Microphone (High Definition Audio Device)
 »   [15]         2            False     Microphone (Voicemod Virtual Audio Device (WDM))
 »   [16]         2             True     DELL U3219Q (NVIDIA High Definition Audio) [Loopback]
 »   [17]         2             True     Line (Voicemod Virtual Audio Device (WDM)) [Loopback]
 »   [18]         2             True     Headset Earphone (Corsair HS60 PRO Surround USB Sound Adapter) [Loopback]

Audio devices can be chosen using the -si speaker input, -mi mic input command line arguments.
python main.py -si 18 -mi 8

@vivekuppal vivekuppal self-assigned this Aug 19, 2023
@vivekuppal vivekuppal added the enhancement New feature or request label Aug 19, 2023
@vivekuppal vivekuppal merged commit 85d09ed into main Aug 21, 2023
2 checks passed
@vivekuppal vivekuppal deleted the vu-select-devices branch August 21, 2023 13:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants