aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2026-02-09 16:11:42 -0600
committerCraig Jennings <c@cjennings.net>2026-02-09 16:11:42 -0600
commit93a850256539957dcd44f2ab89135a29cee7d3f3 (patch)
treeb7589d77482d3c6bdd6cc682d66b6ccace2879df /scripts
parent7c771efc1795c68bfd04e74de4cee9e7b79a9e5b (diff)
downloaddotemacs-93a850256539957dcd44f2ab89135a29cee7d3f3.tar.gz
dotemacs-93a850256539957dcd44f2ab89135a29cee7d3f3.zip
fix(keyboard): support daemon mode for M-S- key translations
GUI key translations (M-O → M-S-o, etc.) were never installed in daemon mode because env-gui-p returns nil at startup with no frame. Use server-after-make-frame-hook for daemon, emacs-startup-hook otherwise. Also adds timestamps to assemblyai-transcribe output.
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/assemblyai-transcribe2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/assemblyai-transcribe b/scripts/assemblyai-transcribe
index 22cbf5383..c798cb6b5 100755
--- a/scripts/assemblyai-transcribe
+++ b/scripts/assemblyai-transcribe
@@ -127,7 +127,7 @@ echo "Transcription complete! (${ELAPSED}s total)" >&2
# Extract utterances and format as "Speaker A: text"
echo "$RESULT" | jq -r '
if .utterances then
- .utterances[] | "Speaker \(.speaker): \(.text)"
+ .utterances[] | ((.start / 1000 | floor) as $s | "\([$s/3600 | floor, ($s % 3600 / 60 | floor), $s % 60] | map(tostring | if length < 2 then "0" + . else . end) | join(":")) Speaker \(.speaker): \(.text)")
else
.text
end