gnu: Add nerd-dictation.
* gnu/packages/machine-learning.scm (nerd-dictation): New variable. Signed-off-by: Ludovic Courtès <ludo@gnu.org>
This commit is contained in:
parent
a3e20f35f5
commit
eecb288ca2
1 changed files with 34 additions and 0 deletions
|
@ -3602,3 +3602,37 @@ simple speech recognition.")
|
||||||
"from .vosk_cffi import ffi, lib")
|
"from .vosk_cffi import ffi, lib")
|
||||||
(("_c\\.")
|
(("_c\\.")
|
||||||
"lib.")))))))))
|
"lib.")))))))))
|
||||||
|
|
||||||
|
(define-public nerd-dictation
|
||||||
|
(let* ((commit "53ab129a5ee0f8b5df284e8cf2229219b732c59e")
|
||||||
|
(revision "0"))
|
||||||
|
(package
|
||||||
|
(name "nerd-dictation")
|
||||||
|
(version (git-version "0" revision commit))
|
||||||
|
(source
|
||||||
|
(origin
|
||||||
|
(method git-fetch)
|
||||||
|
(uri (git-reference
|
||||||
|
(url "https://github.com/ideasman42/nerd-dictation")
|
||||||
|
(commit commit)))
|
||||||
|
(file-name (git-file-name name version))
|
||||||
|
(sha256
|
||||||
|
(base32 "184qijiva1h1x00dzicik0yzgh78pq2lqr5fkgicgp26mkarlyhc"))))
|
||||||
|
(build-system python-build-system)
|
||||||
|
(arguments
|
||||||
|
'(#:phases
|
||||||
|
(modify-phases %standard-phases
|
||||||
|
(add-after 'unpack 'chdir
|
||||||
|
(lambda _ (chdir "package/python"))))))
|
||||||
|
(propagated-inputs (list python-vosk))
|
||||||
|
(inputs (list pulseaudio xdotool))
|
||||||
|
(home-page "https://github.com/ideasman42/nerd-dictation")
|
||||||
|
(synopsis "Offline speech-to-text for desktop Linux")
|
||||||
|
(description "\
|
||||||
|
This package provides simple access speech to text for using in
|
||||||
|
Linux without being tied to a desktop environment, using the @code{vosk-api}.
|
||||||
|
The user configuration lets you manipulate text using Python string
|
||||||
|
operations. It has zero overhead, as this relies on manual activation and
|
||||||
|
there are no background processes. Dictation is accessed manually with
|
||||||
|
@code{nerd-dictation begin} and @code{nerd-dictation end} commands.")
|
||||||
|
(license license:gpl3+))))
|
||||||
|
|
Reference in a new issue