summaryrefslogtreecommitdiff
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
commit6d4fe20acf25a2d0a585dc89286439aaedc7aace (patch)
tree6d071ce9ad9f8260c874ed232c165b0ca6fbe565 /modules/transcription-config.el
parentb22de457ca963f015289db052dd11049a4c355b9 (diff)
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. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
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