From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id GIhZELNgNWPECgEAbAwnHQ (envelope-from ) for ; Thu, 29 Sep 2022 11:09:07 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id oITLD7NgNWN5JAEAauVa8A (envelope-from ) for ; Thu, 29 Sep 2022 11:09:07 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 18A358311 for ; Thu, 29 Sep 2022 11:09:07 +0200 (CEST) Received: from localhost ([::1]:58886 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1odpXW-00050o-3f for larch@yhetil.org; Thu, 29 Sep 2022 05:09:06 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:56832) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1odpRe-00008D-Uo for guix-patches@gnu.org; Thu, 29 Sep 2022 05:03:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:36883) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1odpRe-0004wQ-5b for guix-patches@gnu.org; Thu, 29 Sep 2022 05:03:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1odpRe-00031f-0x for guix-patches@gnu.org; Thu, 29 Sep 2022 05:03:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#58140] [PATCH v4 1/2] gnu: Add nerd-dictation. References: <875yh7bulf.fsf@ngraves.fr> In-Reply-To: <875yh7bulf.fsf@ngraves.fr> Resent-From: Nicolas Graves Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 29 Sep 2022 09:03:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 58140 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: To: 58140@debbugs.gnu.org Cc: ngraves@ngraves.fr Received: via spool by 58140-submit@debbugs.gnu.org id=B58140.166444213611524 (code B ref 58140); Thu, 29 Sep 2022 09:03:01 +0000 Received: (at 58140) by debbugs.gnu.org; 29 Sep 2022 09:02:16 +0000 Received: from localhost ([127.0.0.1]:35951 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1odpQt-0002zn-Rz for submit@debbugs.gnu.org; Thu, 29 Sep 2022 05:02:16 -0400 Received: from 5.mo583.mail-out.ovh.net ([87.98.173.103]:52843) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1odpQr-0002zd-Ba for 58140@debbugs.gnu.org; Thu, 29 Sep 2022 05:02:14 -0400 Received: from player770.ha.ovh.net (unknown [10.110.115.139]) by mo583.mail-out.ovh.net (Postfix) with ESMTP id CDFC320AC7 for <58140@debbugs.gnu.org>; Thu, 29 Sep 2022 09:02:11 +0000 (UTC) Received: from ngraves.fr (met42-h01-213-44-161-47.dsl.sta.abo.bbox.fr [213.44.161.47]) (Authenticated sender: ngraves@ngraves.fr) by player770.ha.ovh.net (Postfix) with ESMTPSA id 08F402F270FDC; Thu, 29 Sep 2022 09:02:09 +0000 (UTC) X-OVh-ClientIp: 213.44.161.47 Date: Thu, 29 Sep 2022 11:02:02 +0200 Message-Id: <20220929090203.6672-1-ngraves@ngraves.fr> X-Mailer: git-send-email 2.37.3 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Ovh-Tracer-Id: 6850819460587774690 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: 0 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedvfedrfeehtddguddvucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuqfggjfdpvefjgfevmfevgfenuceurghilhhouhhtmecuhedttdenucenucfjughrpefhvfevufffkffoggfgsedtkeertdertddtnecuhfhrohhmpefpihgtohhlrghsucfirhgrvhgvshcuoehnghhrrghvvghssehnghhrrghvvghsrdhfrheqnecuggftrfgrthhtvghrnhepteeffefhfffhjeevleeuvdehgffgveekheeuhfekhfehuefgheffhedugfegleeinecuffhomhgrihhnpehgihhthhhusgdrtghomhenucfkpheptddrtddrtddrtddpvddufedrgeegrdduiedurdegjeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhhouggvpehsmhhtphhouhhtpdhhvghlohepphhlrgihvghrjeejtddrhhgrrdhovhhhrdhnvghtpdhinhgvtheptddrtddrtddrtddpmhgrihhlfhhrohhmpehnghhrrghvvghssehnghhrrghvvghsrdhfrhdpnhgspghrtghpthhtohepuddprhgtphhtthhopeehkedugedtseguvggssghughhsrdhgnhhurdhorhhgpdfovfetjfhoshhtpehmohehkeef X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" Reply-to: Nicolas Graves X-ACL-Warn: , Nicolas Graves via Guix-patches From: Nicolas Graves via Guix-patches via X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1664442547; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post; bh=Mvb4j4Xr1dXetteMXrxY8FkGCgg1DJRXkItCn/1RWv0=; b=YZZMjkuancZdOjDX33qsEfErxD2MP+ULrsQxba+6v9ADv/wycNGWICqPwqwc1yj4tVq4jT nPiv7OSIvhUUbskq5pfI3D9c3mrKlGwTgIhquWOAwzmVUZu9Y+zsg3NcgZqPSHZ/Dn0P3K ta/rH8zurIWdOVJr2NdyL5/yuNxrSxd6iwMFAs3jAEL0HJ8+V8OThnVYTXBmeOe8xuUcD7 mHmPMfQFdUZCbMTyj7U8cmraAsgtZFpyFBJnsyaCP5VLXq29RxpjDCJCpsCHxLqWJwypX2 QNmAE+e4tWUTBhI9nM4mQlugYleIkoYP26hLaSgfJTqRf19IAID6isJ0DH20ZA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1664442547; a=rsa-sha256; cv=none; b=MZOHk0omyCxoW3Ht+LZUpmyk4bTcq1Ls+4kwpwHJdXAhgUhbHbW+HW2y+1xDV5kKTOGcpq U+lCRGV0XgUQO4OB5WBrLEqHsUiY9FJSv7O8RaCeVVWdMgQMVNECM0Tizj+4p9k3KzNBp4 dMYaXsastEFqrXmxMPzdjmLdbfVgmY6FbNBhgVk0Jk6SbKwmDdXq8NzZ3ogdQeHPu2XLw1 m3w4lDteoZnE57qkxR52tj/T0LcZgVwUyNfqIlcZKqDDmBxteZtqKKp1M2i63NaTzfF0Wh 9NIkrqHqJQATJc53lWFgIJ5zSg9vLEOh9DkwqTgQ2K9VaVB9h2WoQC8zQ22VUA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -1.34 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 18A358311 X-Spam-Score: -1.34 X-Migadu-Scanner: scn1.migadu.com X-TUID: stDZqWZhEyoU * gnu/packages/machine-learning.scm (nerd-dictation): New variable. --- gnu/packages/machine-learning.scm | 34 +++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/gnu/packages/machine-learning.scm b/gnu/packages/machine-learning.scm index 34b82aa101..f2c9b8dace 100644 --- a/gnu/packages/machine-learning.scm +++ b/gnu/packages/machine-learning.scm @@ -3602,3 +3602,37 @@ (define-public python-vosk "from .vosk_cffi import ffi, lib") (("_c\\.") "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+)))) -- 2.37.3