Skip to content

Commit

Permalink
tweak(whisper): better defaults
Browse files Browse the repository at this point in the history
  • Loading branch information
abougouffa committed Feb 9, 2025
1 parent 100094a commit 9710169
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion modules/me-ai.el
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,16 @@
:straight (:host github :repo "natrys/whisper.el")
:custom
(whisper-install-directory (+directory-ensure minemacs-local-dir "whisper/"))
(whisper-use-threads (/ (num-processors) 2)))
(whisper-use-threads (/ (num-processors) 2))
(whisper-model "medium")
(whisper-quantize "q5_0")
(whisper-language "auto")
:config
(defvar +whisper-languages '("auto" "fr" "en" "ar"))
(defun +whisper-change-language (lang)
"Select the language LANG."
(interactive (list (completing-read "Select language: " +whisper-languages)))
(setopt whisper-language lang)))


(provide 'me-ai)
Expand Down

0 comments on commit 9710169

Please sign in to comment.