.bat script to change audio outputs?
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ height:90px;width:728px;box-sizing:border-box;
}
As my Windows machine is hooked up to 2 different tvs in 2 separate rooms, I am constantly having to change the audio outputs in the Windows sound preferences. I am hoping to find a way, either with a .bat script or other means to speed up the process, or even automate it. A hardware solution would be acceptable as well.
The audio is sent out via two separate outputs:
1---> onboard 8th inch jack to mixer
2---> wireless HMDI to Sony amp.
Here are the 2 outputs as seen in Windows Sound Preferences:
Is there a Windows command to enable/disable specific sound devices that I could use in a.bat script? If so, is there a way to automate this based on which TV is turned on? Iimagine I would need to know some kind of device ID to include in the script.
windows command-line audio batch-file
add a comment |
As my Windows machine is hooked up to 2 different tvs in 2 separate rooms, I am constantly having to change the audio outputs in the Windows sound preferences. I am hoping to find a way, either with a .bat script or other means to speed up the process, or even automate it. A hardware solution would be acceptable as well.
The audio is sent out via two separate outputs:
1---> onboard 8th inch jack to mixer
2---> wireless HMDI to Sony amp.
Here are the 2 outputs as seen in Windows Sound Preferences:
Is there a Windows command to enable/disable specific sound devices that I could use in a.bat script? If so, is there a way to automate this based on which TV is turned on? Iimagine I would need to know some kind of device ID to include in the script.
windows command-line audio batch-file
add a comment |
As my Windows machine is hooked up to 2 different tvs in 2 separate rooms, I am constantly having to change the audio outputs in the Windows sound preferences. I am hoping to find a way, either with a .bat script or other means to speed up the process, or even automate it. A hardware solution would be acceptable as well.
The audio is sent out via two separate outputs:
1---> onboard 8th inch jack to mixer
2---> wireless HMDI to Sony amp.
Here are the 2 outputs as seen in Windows Sound Preferences:
Is there a Windows command to enable/disable specific sound devices that I could use in a.bat script? If so, is there a way to automate this based on which TV is turned on? Iimagine I would need to know some kind of device ID to include in the script.
windows command-line audio batch-file
As my Windows machine is hooked up to 2 different tvs in 2 separate rooms, I am constantly having to change the audio outputs in the Windows sound preferences. I am hoping to find a way, either with a .bat script or other means to speed up the process, or even automate it. A hardware solution would be acceptable as well.
The audio is sent out via two separate outputs:
1---> onboard 8th inch jack to mixer
2---> wireless HMDI to Sony amp.
Here are the 2 outputs as seen in Windows Sound Preferences:
Is there a Windows command to enable/disable specific sound devices that I could use in a.bat script? If so, is there a way to automate this based on which TV is turned on? Iimagine I would need to know some kind of device ID to include in the script.
windows command-line audio batch-file
windows command-line audio batch-file
asked Feb 7 at 9:00
Kalamalka KidKalamalka Kid
237519
237519
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
This may not be the best solution, but it is a solution nevertheless, so that's why I'm posting this.
Actual Tools has a program that can do this. It can redirect audio on a per-program based, depending on what monitor the program is. So you can set it so that if you move a window from one screen to the other, it will change audio settings to output audio to another screen.
I have Actual Tools Windows Manager which is the total suite, but there is also one specifically for this feature. I only don't know which one of them this has, but their site has all the features listed.
The only downside is that this is not a free product. But you buy a licence that works for life, and you get a year of free updates.
If you really don't want to throw money at it, then the easiest solution would be to upgrade to windows 10. In windows 10, you can simply click the speaker in the system tray, then click on the soundcard dropdown button and select a different audio device to switch.
As for Automation, I bet Nircmd (from Nirsoft.net) can do this, but I have no experience with it.
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "3"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1403034%2fbat-script-to-change-audio-outputs%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
This may not be the best solution, but it is a solution nevertheless, so that's why I'm posting this.
Actual Tools has a program that can do this. It can redirect audio on a per-program based, depending on what monitor the program is. So you can set it so that if you move a window from one screen to the other, it will change audio settings to output audio to another screen.
I have Actual Tools Windows Manager which is the total suite, but there is also one specifically for this feature. I only don't know which one of them this has, but their site has all the features listed.
The only downside is that this is not a free product. But you buy a licence that works for life, and you get a year of free updates.
If you really don't want to throw money at it, then the easiest solution would be to upgrade to windows 10. In windows 10, you can simply click the speaker in the system tray, then click on the soundcard dropdown button and select a different audio device to switch.
As for Automation, I bet Nircmd (from Nirsoft.net) can do this, but I have no experience with it.
add a comment |
This may not be the best solution, but it is a solution nevertheless, so that's why I'm posting this.
Actual Tools has a program that can do this. It can redirect audio on a per-program based, depending on what monitor the program is. So you can set it so that if you move a window from one screen to the other, it will change audio settings to output audio to another screen.
I have Actual Tools Windows Manager which is the total suite, but there is also one specifically for this feature. I only don't know which one of them this has, but their site has all the features listed.
The only downside is that this is not a free product. But you buy a licence that works for life, and you get a year of free updates.
If you really don't want to throw money at it, then the easiest solution would be to upgrade to windows 10. In windows 10, you can simply click the speaker in the system tray, then click on the soundcard dropdown button and select a different audio device to switch.
As for Automation, I bet Nircmd (from Nirsoft.net) can do this, but I have no experience with it.
add a comment |
This may not be the best solution, but it is a solution nevertheless, so that's why I'm posting this.
Actual Tools has a program that can do this. It can redirect audio on a per-program based, depending on what monitor the program is. So you can set it so that if you move a window from one screen to the other, it will change audio settings to output audio to another screen.
I have Actual Tools Windows Manager which is the total suite, but there is also one specifically for this feature. I only don't know which one of them this has, but their site has all the features listed.
The only downside is that this is not a free product. But you buy a licence that works for life, and you get a year of free updates.
If you really don't want to throw money at it, then the easiest solution would be to upgrade to windows 10. In windows 10, you can simply click the speaker in the system tray, then click on the soundcard dropdown button and select a different audio device to switch.
As for Automation, I bet Nircmd (from Nirsoft.net) can do this, but I have no experience with it.
This may not be the best solution, but it is a solution nevertheless, so that's why I'm posting this.
Actual Tools has a program that can do this. It can redirect audio on a per-program based, depending on what monitor the program is. So you can set it so that if you move a window from one screen to the other, it will change audio settings to output audio to another screen.
I have Actual Tools Windows Manager which is the total suite, but there is also one specifically for this feature. I only don't know which one of them this has, but their site has all the features listed.
The only downside is that this is not a free product. But you buy a licence that works for life, and you get a year of free updates.
If you really don't want to throw money at it, then the easiest solution would be to upgrade to windows 10. In windows 10, you can simply click the speaker in the system tray, then click on the soundcard dropdown button and select a different audio device to switch.
As for Automation, I bet Nircmd (from Nirsoft.net) can do this, but I have no experience with it.
answered Feb 7 at 9:52
LPChipLPChip
37k55588
37k55588
add a comment |
add a comment |
Thanks for contributing an answer to Super User!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1403034%2fbat-script-to-change-audio-outputs%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown