Yeah, I'd be interested in seeing how one would implement this using Win7Audio for "input" devices. How one would get the right "index" number. I'm not sure Win7Audio can be set to control "input / capture" devices. I could be wrong.
I do think nircmd.exe could play a role in this, seems to be the "go-to" utility when you search on the web. If some external process is going to be required, I'd lean toward the Powershell appraoch though. I'm not in love with having to include a .dll cmdlet file, but having to include nircmd.exe is not optimal either. I also think the PowershellRM plugin is going to be a ton more efficient than a boatload of calls to RunCommand and nircmd.
It is currently April 20th, 2024, 1:53 am
Adjust Mic Volume Level?
-
- Developer
- Posts: 22629
- Joined: April 19th, 2009, 11:02 pm
- Location: Fort Hunt, Virginia, USA
-
- Rainmeter Sage
- Posts: 1399
- Joined: April 24th, 2021, 8:13 pm
Re: Adjust Mic Volume Level?
Actually, if it's for personal use you can just, Install-Module AudioDeviceCmdlets and use as is. Also if you want to, you can use RunCommand. But I didn't want to open a powershell instance for each time I want to change it or get the value(since it can be changed by other means).jsmorley wrote: ↑August 13th, 2021, 1:30 pm Yeah, I'd be interested in seeing how one would implement this using Win7Audio for "input" devices. How one would get the right "index" number. I'm not sure Win7Audio can be set to control "input / capture" devices. I could be wrong.
I do think nircmd.exe could play a role in this, seems to be the "go-to" utility when you search on the web. If some external process is going to be required, I'd lean toward the Powershell appraoch. I'm not in love with having to include a .dll cmdlet file, but having to include nircmd.exe is not optimal either.
from the Realm of Death
-
- Rainmeter Sage
- Posts: 7128
- Joined: February 27th, 2015, 2:38 pm
- Location: Terra Yincognita
Re: Adjust Mic Volume Level?
death.crafter wrote: ↑August 13th, 2021, 1:27 pmhttps://docs.rainmeter.net/manual-beta/plugins/win7audio/
Are you sure?
You're both right, my bad, forgot the mic is an input device, not an output one. Win7Audio can only handle output ones - that one I knew, just didn't make the connection with the mic being the opposite.
As a side note, too bad the Win7Audio and AudioLevel aren't more "compatible" with each other, e.g. an index or device ID that you use with one of them to be able to be used with the other as well.
SoundVolumeView & GetNirjsmorley wrote: ↑August 13th, 2021, 1:30 pmI do think nircmd.exe could play a role in this, seems to be the "go-to" utility when you search on the web. If some external process is going to be required, I'd lean toward the Powershell appraoch though. I'm not in love with having to include a .dll cmdlet file, but having to include nircmd.exe is not optimal either. I also think the PowershellRM plugin is going to be a ton more efficient than a boatload of calls to RunCommand and nircmd.
And yes, it's easier and much more feasible with PowerShell, in this case. I just mentioned it as an alternative.
-
- Developer
- Posts: 22629
- Joined: April 19th, 2009, 11:02 pm
- Location: Fort Hunt, Virginia, USA
Re: Adjust Mic Volume Level?
Yeah, I'm working on an example that let's you use "sliders" and "mute" buttons, to control both ouput (speakers) and input (microphone). I'd sorta like to have this for my own purposes, so it's worth the bit of effort to cobble this together.Yincognito wrote: ↑August 13th, 2021, 5:17 pm You're both right, my bad, forgot the mic is an input device, not an output one. Win7Audio can only handle output ones - that one I knew, just didn't make the connection with the mic being the opposite.
As a side note, too bad the Win7Audio and AudioLevel aren't more "compatible" with each other, e.g. an index or device ID that you use with one of them to be able to be used with the other as well.
SoundVolumeView & GetNir
And yes, it's easier and much more feasible with PowerShell, in this case. I just mentioned it as an alternative.
So it will use NightHawkSLO's Mouse plugin, and the Powershell cmdlet that has been referenced. I'll post it here when I'm done.
-
- Rainmeter Sage
- Posts: 7128
- Joined: February 27th, 2015, 2:38 pm
- Location: Terra Yincognita
Re: Adjust Mic Volume Level?
Excellent - everybody would like that, not just you.jsmorley wrote: ↑August 13th, 2021, 5:24 pm Yeah, I'm working on an example that let's you use "sliders" and "mute" buttons, to control both ouput (speakers) and input (microphone). I'd sorta like to have this for my own purposes, so it's worth the bit of effort to cobble this together.
So it will use NightHawkSLO's Mouse plugin, and the Powershell cmdlet that has been referenced. I'll post it here when I'm done.
If only such a thing could be extended to every audio device on one's system while trying to avoid that plugin error, I believe something like this could be posted in a more visible place on the forum. In that case, I would be interested in it as well (my thing with flexibility and all that).
-
- Developer
- Posts: 22629
- Joined: April 19th, 2009, 11:02 pm
- Location: Fort Hunt, Virginia, USA
Re: Adjust Mic Volume Level?
Yeah, my skin will just address the current default input and output devices. You can easily use Windows setting to change those.Yincognito wrote: ↑August 13th, 2021, 5:52 pm Excellent - everybody would like that, not just you.
If only such a thing could be extended to every audio device on one's system while trying to avoid that plugin error, I believe something like this could be posted in a more visible place on the forum. In that case, I would be interested in it as well (my thing with flexibility and all that).
-
- Posts: 1140
- Joined: February 17th, 2011, 7:45 pm
- Location: a Galaxy S7 far far away
Re: Adjust Mic Volume Level?
So, you're working on a skin to set sound and mic volume? Is it likely to be any better/different than the code given by death.crafter?jsmorley wrote: ↑August 13th, 2021, 5:24 pm Yeah, I'm working on an example that let's you use "sliders" and "mute" buttons, to control both ouput (speakers) and input (microphone). I'd sorta like to have this for my own purposes, so it's worth the bit of effort to cobble this together.
So it will use NightHawkSLO's Mouse plugin, and the Powershell cmdlet that has been referenced. I'll post it here when I'm done.
- MuLab -
-
- Developer
- Posts: 22629
- Joined: April 19th, 2009, 11:02 pm
- Location: Fort Hunt, Virginia, USA
Re: Adjust Mic Volume Level?
Perhaps a bit more complete. It will allow dragging an indicator of the current volume to set it, and buttons to toggle mute on and off.
You do not have the required permissions to view the files attached to this post.
-
- Posts: 1140
- Joined: February 17th, 2011, 7:45 pm
- Location: a Galaxy S7 far far away
Re: Adjust Mic Volume Level?
Looks good
Any chance scrolling can work to adjust the mouse volume so I can use a Roundline Bar with it?
Any chance scrolling can work to adjust the mouse volume so I can use a Roundline Bar with it?
- MuLab -
-
- Posts: 1140
- Joined: February 17th, 2011, 7:45 pm
- Location: a Galaxy S7 far far away
Re: Adjust Mic Volume Level?
Well while waiting, I tried to get death.crafter's code working in my skin. But simply adding 3 Sections and 2 Variables seems to be a problem as nothing is displayed?!
EDIT: I found the cause. It seems the Container=MeterContainer option isn't required.
EDIT: I found the cause. It seems the Container=MeterContainer option isn't required.
Last edited by sl23 on August 13th, 2021, 8:48 pm, edited 1 time in total.
- MuLab -