From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id CHD1AKhgNWPECgEAbAwnHQ (envelope-from ) for ; Thu, 29 Sep 2022 11:08:56 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id yLxmAKhgNWOBfgEAauVa8A (envelope-from ) for ; Thu, 29 Sep 2022 11:08:56 +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 A0E0FEDA3 for ; Thu, 29 Sep 2022 11:08:55 +0200 (CEST) Received: from localhost ([::1]:57444 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1odpXK-0004c8-So for larch@yhetil.org; Thu, 29 Sep 2022 05:08:54 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:51780) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1odpQg-0007sp-OI for guix-patches@gnu.org; Thu, 29 Sep 2022 05:02:06 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:36867) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1odpQg-0004RS-GE for guix-patches@gnu.org; Thu, 29 Sep 2022 05:02:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1odpQg-0002yy-Af for guix-patches@gnu.org; Thu, 29 Sep 2022 05:02:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#58140] [PATCH v3 5/6] gnu: Add python-nerd-dictation. Resent-From: Nicolas Graves Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 29 Sep 2022 09:02:02 +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.166444206411379 (code B ref 58140); Thu, 29 Sep 2022 09:02:02 +0000 Received: (at 58140) by debbugs.gnu.org; 29 Sep 2022 09:01:04 +0000 Received: from localhost ([127.0.0.1]:35941 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1odpPk-0002xS-0s for submit@debbugs.gnu.org; Thu, 29 Sep 2022 05:01:04 -0400 Received: from 1.mo560.mail-out.ovh.net ([46.105.63.121]:41891) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1odpPe-0002wE-8A for 58140@debbugs.gnu.org; Thu, 29 Sep 2022 05:00:59 -0400 Received: from player791.ha.ovh.net (unknown [10.108.20.46]) by mo560.mail-out.ovh.net (Postfix) with ESMTP id 0189C21A61 for <58140@debbugs.gnu.org>; Thu, 29 Sep 2022 09:00:55 +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 player791.ha.ovh.net (Postfix) with ESMTPSA id 5F7692F0AB48F; Thu, 29 Sep 2022 09:00:54 +0000 (UTC) X-OVh-ClientIp: 213.44.161.47 Date: Thu, 29 Sep 2022 11:00:21 +0200 Message-Id: <20220929090022.5950-5-ngraves@ngraves.fr> X-Mailer: git-send-email 2.37.3 In-Reply-To: <20220929090022.5950-1-ngraves@ngraves.fr> References: <20220929090022.5950-1-ngraves@ngraves.fr> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Ovh-Tracer-Id: 6829427361295688418 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: 0 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedvfedrfeehtddgudduucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuqfggjfdpvefjgfevmfevgfenuceurghilhhouhhtmecuhedttdenucenucfjughrpefhvfevufffkffojghfggfgsedtkeertdertddtnecuhfhrohhmpefpihgtohhlrghsucfirhgrvhgvshcuoehnghhrrghvvghssehnghhrrghvvghsrdhfrheqnecuggftrfgrthhtvghrnhepvdehleeiffehtedvlefhffffjeefgfduhfetkeevheeiteduiedugfekuedtheejnecuffhomhgrihhnpehgihhthhhusgdrtghomhenucfkpheptddrtddrtddrtddpvddufedrgeegrdduiedurdegjeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhhouggvpehsmhhtphhouhhtpdhhvghlohepphhlrgihvghrjeeluddrhhgrrdhovhhhrdhnvghtpdhinhgvtheptddrtddrtddrtddpmhgrihhlfhhrohhmpehnghhrrghvvghssehnghhrrghvvghsrdhfrhdpnhgspghrtghpthhtohepuddprhgtphhtthhopeehkedugedtseguvggssghughhsrdhgnhhurdhorhhgpdfovfetjfhoshhtpehmohehiedt 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=1664442535; 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=D9cJw/Il7Q2YWFe7j46wdGsYtxY7tPzEKxwS7W17g9Q=; b=TfIM5jYIPLSCR0qsa4v+Mfx/eGRLLVDIKvfcnrKxL/c2+2XVYwUQhbmGr4Z2Pl+ytY85DJ G8MKtYmWvhwTDPxaTvICN4QBb4GCkR7T1xx7efDg1J9C77COu84BDur27KOt5L/A6In4vG K/xNWn7+nz/GpA7CrLhxd26YKXh+OQVuhFXQPqrZwfmQq75CmOOJcvtopKp70H8aQheebL tLGsUPZV5Y4Eqalnp3MHUYNJIo54zmw4ZNEquk0NDO7Zhddvd7mgqB1qrQKbgmD4nHgvjj +YIWh4pnzrCDsqfWzuhEbQHWuP+BFfFt8/ayEm0+KjuMsRRvgFtDZR5bwznkQg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1664442535; a=rsa-sha256; cv=none; b=JCUEsPOovUWZ2UpEcoN/dbMnY1iFHZU6dIRiBIp0VbdjxnfJKsYz3oB1AQme79ceE7BvgN bAuOUVpchj0k0HMY7NwHden0M+WocCPsPd8p7TU36wy0pCmlaIM/Ez9GtZqQD2WMnrlkd9 sPxtVrGisSe6dhiAFmjpyPrmhFjtIAKj7w1cJUxmczJVPF+4LC4I7qG/XpkkkfB/KFSXum 115yOub73sroF57MRDqlHITFOACCnjyhfBdhQoY3/nl1jpTZ2mbPOAUQd8f5h6bWZYO77M JCdSAi1B4P4hqkwAUeFUyGl2vdBMOmPAKWqaXRvul5xVxCHU9Us4bz6XYPIi0w== 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: -2.24 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: A0E0FEDA3 X-Spam-Score: -2.24 X-Migadu-Scanner: scn0.migadu.com X-TUID: X4ocve67Ah3R * gnu/packages/machine-learning.scm (python-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