From 0f5a63df6d459a0c0506304e3a9142d8da91dc08 Mon Sep 17 00:00:00 2001 From: Vladislav Slobodenyuk Date: Fri, 6 Mar 2026 15:41:15 +0900 Subject: [PATCH] Add Whisper. --- .config.d/90-experimental.el | 50 ++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 .config.d/90-experimental.el diff --git a/.config.d/90-experimental.el b/.config.d/90-experimental.el new file mode 100644 index 0000000..a5559ad --- /dev/null +++ b/.config.d/90-experimental.el @@ -0,0 +1,50 @@ +;;; 90-experimental.el --- Experimental packages -*- no-byte-compile: t; lexical-binding: t -*- + +;; Author: iamtoaster + +;; This file is not part of GNU Emacs + +;; This program is free software: you can redistribute it and/or modify +;; it under the terms of the GNU General Public License as published by +;; the Free Software Foundation, either version 3 of the License, or +;; (at your option) any later version. + +;; This program is distributed in the hope that it will be useful, +;; but WITHOUT ANY WARRANTY; without even the implied warranty of +;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +;; GNU General Public License for more details. + +;; You should have received a copy of the GNU General Public License +;; along with this program. If not, see . + +;;; Commentary: +;; This file contains experimental packages that may or may not make it to the +;; main configuration eventually. + +;;; Code: +(use-package whisper + + :straight (whisper :type git + :host github + :repo "natrys/whisper.el" + :branch "master") + :init + (setq whisper-install-whispercpp nil) + :config + (setq whisper-quantize "q8_0" + whisper-model "large-v3-turbo" + whisper-language "auto" + whisper-server-mode 'local + whisper-server-baseurl "http://127.0.0.1:8642" + whisper-translate nil + whisper-use-threads (/ (num-processors) 2)) + + ;; Lets get hacking + + ; The whisper is available in path, so we overwrite the search function so + ; that it takes the executable from there instead of the install directory. + (defun whisper--find-whispercpp-server () + (executable-find "whisper-server"))) + + +;;; 90-experimental.el ends here