ttscoff / bunch

Documentation repository for Bunch.app
https://bunchapp.co
116 stars 5 forks source link

audio input not switching #289

Open dombarnes opened 1 year ago

dombarnes commented 1 year ago

I'm attempting to use Bunch for a simple cough button. My bunch script is as follows:

---
title: Cough Button
shortcut: m
---
(audio input mute)
(notify Muted)
!(audio input macbook)
!(notify Unmuted)

The mute command works successfully when I toggle on. When I toggle off, the notification fires, but I am not unmuted. I can resolve by changing Audio inputs are as follows: image

This works fine if i just set the input audio level

(audio input volume 0)
!(audio input volume 50)
dombarnes commented 1 year ago

Was doing some more testing and !(audio input unmute) seems to do the right thing. Not sure if this is documented anywhere.

ttscoff commented 1 year ago

Yeah, you have to use unmute or set a non-zero volume level, otherwise you're just setting the input device. Apparently I didn't mention unmute in docs, will fix.

-Brett

On 8 Feb 2023, at 7:10, Dom Barnes wrote:

Was doing some more testing and !(audio input unmute) seems to do the right thing. Not sure if this is documented anywhere.

-- Reply to this email directly or view it on GitHub: https://github.com/ttscoff/bunch/issues/289#issuecomment-1422576613 You are receiving this because you are subscribed to this thread.

Message ID: @.***>

dombarnes commented 1 year ago

Thanks for clarifying! I also found that setting input volume to 0 didn’t seem to mute the audio either. Maybe that’s just an oddity in macos x.On 8 Feb 2023, at 13:47, Brett Terpstra @.***> wrote: Yeah, you have to use unmute or set a non-zero volume level, otherwise you're just setting the input device. Apparently I didn't mention unmute in docs, will fix.

-Brett

On 8 Feb 2023, at 7:10, Dom Barnes wrote:

Was doing some more testing and !(audio input unmute) seems to do the right thing. Not sure if this is documented anywhere.

-- Reply to this email directly or view it on GitHub: https://github.com/ttscoff/bunch/issues/289#issuecomment-1422576613 You are receiving this because you are subscribed to this thread.

Message ID: @.***>

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: @.***>