aboutsummaryrefslogtreecommitdiff
path: root/scripts/assemblyai-transcribe
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
commitc6f6321db9f379f045e1c2a26e79866901b31381 (patch)
tree7ef0f7b4a789106d22b0a64f481cc9ed816f8388 /scripts/assemblyai-transcribe
parentfb4763757ce854ab8b273b02731cb53bb5d7e113 (diff)
downloaddotemacs-c6f6321db9f379f045e1c2a26e79866901b31381.tar.gz
dotemacs-c6f6321db9f379f045e1c2a26e79866901b31381.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/assemblyai-transcribe')
-rwxr-xr-xscripts/assemblyai-transcribe2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/assemblyai-transcribe b/scripts/assemblyai-transcribe
index 22cbf538..c798cb6b 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