Make the talking-while-muted beep optional
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -32,6 +32,7 @@ final class DevicesPanel extends FormPanel {
|
||||
private final JSlider denoiseLevel;
|
||||
private final JCheckBox typingCheck;
|
||||
private final JCheckBox agcCheck;
|
||||
private final JCheckBox mutedWarningCheck;
|
||||
|
||||
DevicesPanel(Settings settings, VoiceOutput livePlayback,
|
||||
Consumer<Consumer<VoiceInput>> applyLive,
|
||||
@@ -124,6 +125,16 @@ final class DevicesPanel extends FormPanel {
|
||||
applyLive.accept(m -> m.setDenoiserLevel(denoiseLevel.getValue() / 100.0)));
|
||||
syncNoise.run();
|
||||
|
||||
mutedWarningCheck = new JCheckBox("Beep when talking while muted", settings.mutedTalkWarning);
|
||||
mutedWarningCheck.setToolTipText("Play a reminder sound when you speak into a muted microphone.");
|
||||
c.gridx = 0;
|
||||
c.gridy = row++;
|
||||
c.gridwidth = 2;
|
||||
c.insets = UIScale.scale(new Insets(14, 4, 4, 4));
|
||||
add(mutedWarningCheck, c);
|
||||
c.insets = UIScale.scale(new Insets(4, 4, 4, 4));
|
||||
c.gridwidth = 1;
|
||||
|
||||
c.gridx = 0;
|
||||
c.gridy = row;
|
||||
c.weighty = 1;
|
||||
@@ -140,6 +151,7 @@ final class DevicesPanel extends FormPanel {
|
||||
target.denoiserLevel = denoiseLevel.getValue() / 100.0;
|
||||
target.typingAttenuation = typingCheck.isSelected();
|
||||
target.agc = agcCheck.isSelected();
|
||||
target.mutedTalkWarning = mutedWarningCheck.isSelected();
|
||||
}
|
||||
|
||||
private static void selectOrDefault(JComboBox<AudioDevices.Device> combo, String deviceId) {
|
||||
|
||||
Reference in New Issue
Block a user