diff options
| author | LLLL Colonq <llll@colonq> | 2025-05-01 17:06:41 -0400 |
|---|---|---|
| committer | LLLL Colonq <llll@colonq> | 2025-05-01 17:06:41 -0400 |
| commit | fb01362a9dd816fc0d0e50052ab4764dd30e46f3 (patch) | |
| tree | d581df21e161a0483d8b02ea4519debb4501a4a7 /src/wasp-ai.el | |
| parent | b21ecce6645fc17c520b722de3d96e550c77c490 (diff) | |
You know we love updating with a horrendous commit message
Diffstat (limited to 'src/wasp-ai.el')
| -rw-r--r-- | src/wasp-ai.el | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/src/wasp-ai.el b/src/wasp-ai.el index 1201ca5b..e279103e 100644 --- a/src/wasp-ai.el +++ b/src/wasp-ai.el @@ -169,16 +169,15 @@ Double-check the output to make sure it sounds normal." (defun w/ai-transcribe (path k) "Transcribe the audio file at PATH and pass the resulting string to K." - ) - ;; (let ((request-curl-options '("-F" "model=whisper-1" "-F" "language=en"))) - ;; (w/ai-openai-post-form - ;; "/v1/audio/transcriptions" - ;; `(("file" . ,(f-canonical path))) - ;; (lambda (res) - ;; (funcall - ;; k - ;; (-some-> res - ;; (ht-get "text"))))))) + (let ((request-curl-options '("-F" "model=whisper-1" "-F" "language=en"))) + (w/ai-openai-post-form + "/v1/audio/transcriptions" + `(("file" . ,(f-canonical path))) + (lambda (res) + (funcall + k + (-some-> res + (ht-get "text"))))))) (provide 'wasp-ai) ;;; wasp-ai.el ends here |
