aboutsummaryrefslogtreecommitdiff
path: root/modules/transcription-config.el
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2025-11-14 18:34:39 -0600
committerCraig Jennings <c@cjennings.net>2025-11-14 18:34:39 -0600
commit73a0f0c378ed16425395a74f3c86109f8f1444e6 (patch)
tree36567212b885b952129293f23aa118a0acd0bd03 /modules/transcription-config.el
parent4beac67349e694300b2ceca0e1a0b01021207d2a (diff)
downloaddotemacs-73a0f0c378ed16425395a74f3c86109f8f1444e6.tar.gz
dotemacs-73a0f0c378ed16425395a74f3c86109f8f1444e6.zip
fix(recording): Fix phone call audio capture with amix filter
Phone calls were not capturing the remote person's voice due to severe volume loss (44 dB) when using the amerge+pan FFmpeg filter combination. Changes: - Replace amerge+pan with amix filter (provides 44 dB volume improvement) - Increase default system volume from 0.5 to 2.0 for better capture levels - Add diagnostic tool to show active audio playback (C-; r w) - Add integration test with real voice recording - Fix batch mode compatibility for test execution The amix filter properly mixes microphone and system monitor inputs without the massive volume loss that amerge+pan caused. Verified with automated integration test showing perfect transcription of test audio.
Diffstat (limited to 'modules/transcription-config.el')
-rw-r--r--modules/transcription-config.el5
1 files changed, 4 insertions, 1 deletions
diff --git a/modules/transcription-config.el b/modules/transcription-config.el
index 530522de..5349ade0 100644
--- a/modules/transcription-config.el
+++ b/modules/transcription-config.el
@@ -380,7 +380,10 @@ Prompts with completing-read to select from available backends."
"b" #'cj/transcription-switch-backend
"v" #'cj/transcriptions-buffer
"k" #'cj/transcription-kill)
-(keymap-set cj/custom-keymap "T" cj/transcribe-map)
+
+;; Only set keybinding if cj/custom-keymap is bound (not in batch mode)
+(when (boundp 'cj/custom-keymap)
+ (keymap-set cj/custom-keymap "T" cj/transcribe-map))
(with-eval-after-load 'which-key
(which-key-add-key-based-replacements