From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.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 eNitKXJONGOgIgEAbAwnHQ (envelope-from ) for ; Wed, 28 Sep 2022 15:38:58 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id UNzrKHJONGNQlAAAG6o9tA (envelope-from ) for ; Wed, 28 Sep 2022 15:38:58 +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 357AAA5D6 for ; Wed, 28 Sep 2022 15:38:58 +0200 (CEST) Received: from localhost ([::1]:36574 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1odXH7-0004Rs-B4 for larch@yhetil.org; Wed, 28 Sep 2022 09:38:57 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:43742) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1odViR-0003HC-SS for guix-patches@gnu.org; Wed, 28 Sep 2022 07:59:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:33127) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1odViR-0001NG-Jj for guix-patches@gnu.org; Wed, 28 Sep 2022 07:59:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1odViR-0001HI-Ff for guix-patches@gnu.org; Wed, 28 Sep 2022 07:59:03 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#58140] [PATCH 5/6] gnu: Add python-nerd-dictation. Resent-From: Nicolas Graves Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 28 Sep 2022 11:59:03 +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.16643663134841 (code B ref 58140); Wed, 28 Sep 2022 11:59:03 +0000 Received: (at 58140) by debbugs.gnu.org; 28 Sep 2022 11:58:33 +0000 Received: from localhost ([127.0.0.1]:60432 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1odVhw-0001Fw-VE for submit@debbugs.gnu.org; Wed, 28 Sep 2022 07:58:33 -0400 Received: from 14.mo583.mail-out.ovh.net ([188.165.51.82]:41949) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1odVhs-0001Fc-HS for 58140@debbugs.gnu.org; Wed, 28 Sep 2022 07:58:29 -0400 Received: from player691.ha.ovh.net (unknown [10.108.1.93]) by mo583.mail-out.ovh.net (Postfix) with ESMTP id 0163B25786 for <58140@debbugs.gnu.org>; Wed, 28 Sep 2022 11:58:26 +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 player691.ha.ovh.net (Postfix) with ESMTPSA id 2872F2F280004; Wed, 28 Sep 2022 11:58:25 +0000 (UTC) X-OVh-ClientIp: 213.44.161.47 Date: Wed, 28 Sep 2022 13:57:54 +0200 Message-Id: <20220928115755.6292-5-ngraves@ngraves.fr> X-Mailer: git-send-email 2.37.3 In-Reply-To: <20220928115755.6292-1-ngraves@ngraves.fr> References: <20220928115755.6292-1-ngraves@ngraves.fr> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Ovh-Tracer-Id: 3954723424091235042 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: 0 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedvfedrfeegkedggeekucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuqfggjfdpvefjgfevmfevgfenuceurghilhhouhhtmecuhedttdenucenucfjughrpefhvfevufffkffojghfggfgsedtkeertdertddtnecuhfhrohhmpefpihgtohhlrghsucfirhgrvhgvshcuoehnghhrrghvvghssehnghhrrghvvghsrdhfrheqnecuggftrfgrthhtvghrnhepvdehleeiffehtedvlefhffffjeefgfduhfetkeevheeiteduiedugfekuedtheejnecuffhomhgrihhnpehgihhthhhusgdrtghomhenucfkpheptddrtddrtddrtddpvddufedrgeegrdduiedurdegjeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhhouggvpehsmhhtphhouhhtpdhhvghlohepphhlrgihvghrieeluddrhhgrrdhovhhhrdhnvghtpdhinhgvtheptddrtddrtddrtddpmhgrihhlfhhrohhmpehnghhrrghvvghssehnghhrrghvvghsrdhfrhdpnhgspghrtghpthhtohepuddprhgtphhtthhopeehkedugedtseguvggssghughhsrdhgnhhurdhorhhgpdfovfetjfhoshhtpehmohehkeef 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=1664372338; 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=vGksdg9BNmw5VIJ0NWq/wAfUPlA8UbMWPvrcSc/hwaU=; b=f5UPsTwMB/zyBQswlmR5T98Q1otYumf6a96/J+kbMnwRRh4cbaJMi+YFGUpSpKpAodRScT NvxTBI38kqW1uQ2kVq3eaC1q0DgYkHXZjQ/+z34LgdFsAD6DbeVj/RUKh+uz95ImYqKQ9U qr+WBSEz3Lbn4WaT0wLp641GeviM9Q0+64YlBzKwt8GS8sY2scmu8xtYWXrH3C42q7dPsn IXgaH8NH4NxKQDVuswhwcAnVBBvyL+czdqmh8EdRiWnltdx9RZg4+AFk3hKYZ8+cJ1HLgO FPIScGHitPspkJQsTSHkGCopmYSLa0johidWDuVgMkU5QACsMkLXdjeXfyZLyQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1664372338; a=rsa-sha256; cv=none; b=NIiIvqhXhbPxnZ2U0YgacImzzXY0ir+nu1l35kA+P9TSLjZ5wH+bA0vg9oAa2sfXtuZS9O jBZaZkZEbeLSttARsygmEU9mdGEkPdeCzCDv6zP08F5pb3vgR3B9VWusnBF04NPMrqKOzS NkB1TJRxi20q7ZfjDpgl47DX5yjtFDF9DEJIkltUjKA2lS49CmSIfRHZ40Zw1atYHMdSRZ m7T5/Zq4GOtEAY1zyqzDO62j/rnHbow/Y0qThczLpZmxIitmYuHi0WnH0X4cNw5famA2wz pNFyDkYlh6Z9JvJ3mrtcbVfWj8ls/eAjpGo7c5HdPFHMMlkIbsCO71Toxd1Igw== 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: -4.45 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: 357AAA5D6 X-Spam-Score: -4.45 X-Migadu-Scanner: scn0.migadu.com X-TUID: VrnsKTWuh+c9 * 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 cbbc80db1c..3fec07e6a1 100644 --- a/gnu/packages/machine-learning.scm +++ b/gnu/packages/machine-learning.scm @@ -3599,3 +3599,37 @@ (define-public python-vosk "from .vosk_cffi import ffi, lib") (("_c\\.") "lib."))))))))) + +(define-public python-nerd-dictation + (let* ((commit "53ab129a5ee0f8b5df284e8cf2229219b732c59e") + (revision "0")) + (package + (name "python-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