add whisper stt via lemonade with live dictation

This commit is contained in:
Willem van den Ende
2026-11-03 11:58:12 +00:00
parent 56bda55eaa
commit 978aa86000
3 changed files with 368 additions and 0 deletions
+23
View File
@@ -138,6 +138,29 @@
:models '(mtplx-qwen38-27b-optimized-speed))
(set-default gptel-model 'mtplx-qwen38-27b-optimized-speed))
;; Whisper speech-to-text via Lemonade server (OpenAI-compatible API)
(add-load-path! "lisp")
(autoload #'live-dictate "live-dictate" nil t)
(use-package! whisper
:commands (whisper-run whisper-file whisper-select-language)
:init
(map! :leader
(:prefix ("A" . "+ai")
:desc "Whisper record/transcribe" "w" #'whisper-run
:desc "Whisper transcribe file" "W" #'whisper-file
:desc "Whisper select language" "l" #'whisper-select-language
:desc "Live dictate (streaming)" "d" #'live-dictate))
:config
(setopt whisper-install-whispercpp nil ; no whisper.cpp needed, remote API only
whisper-server-mode 'openai ; use OpenAI-compatible transcription API
whisper-openai-api-baseurl "http://localhost:13305/"
whisper-openai-api-key "not-needed" ; Lemonade ignores auth, but whisper.el requires a non-nil key
whisper-openai-model "Whisper-Large-v3-Turbo"
whisper-language "en"
whisper-translate nil ; t would POST to /translations instead
whisper-return-cursor 'end))
;; elixir
;; inspiration https://medium.com/@victor.nascimento/elixir-emacs-development-2023-edition-1a6ccc40629
(use-package