From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id WFj3JXYTrmFOrgAAgWs5BA (envelope-from ) for ; Mon, 06 Dec 2021 14:43:18 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id SLt7IXYTrmGmYwAAbx9fmQ (envelope-from ) for ; Mon, 06 Dec 2021 13:43:18 +0000 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 30E022DE9C for ; Mon, 6 Dec 2021 14:43:18 +0100 (CET) Received: from localhost ([::1]:45844 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1muEGz-0004Og-Bs for larch@yhetil.org; Mon, 06 Dec 2021 08:43:17 -0500 Received: from eggs.gnu.org ([209.51.188.92]:38038) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1muEFm-0003BI-3K for bug-guix@gnu.org; Mon, 06 Dec 2021 08:42:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:49320) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1muEFl-00036o-Qw for bug-guix@gnu.org; Mon, 06 Dec 2021 08:42:01 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1muEFl-0002X0-OS for bug-guix@gnu.org; Mon, 06 Dec 2021 08:42:01 -0500 X-Loop: help-debbugs@gnu.org Subject: bug#52321: festival can't do text-to-speech (Linux: can't open /dev/dsp) Resent-From: Tobias Geerinckx-Rice Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Mon, 06 Dec 2021 13:42:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 52321 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Luis Felipe Cc: 52321@debbugs.gnu.org X-Debbugs-Original-Cc: bug-guix@gnu.org, 52321@debbugs.gnu.org Received: via spool by submit@debbugs.gnu.org id=B.16387980699644 (code B ref -1); Mon, 06 Dec 2021 13:42:01 +0000 Received: (at submit) by debbugs.gnu.org; 6 Dec 2021 13:41:09 +0000 Received: from localhost ([127.0.0.1]:60860 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1muEEv-0002VT-J8 for submit@debbugs.gnu.org; Mon, 06 Dec 2021 08:41:09 -0500 Received: from lists.gnu.org ([209.51.188.17]:41694) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1muEEt-0002VM-PP for submit@debbugs.gnu.org; Mon, 06 Dec 2021 08:41:08 -0500 Received: from eggs.gnu.org ([209.51.188.92]:37702) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1muEEt-0000Su-Ig for bug-guix@gnu.org; Mon, 06 Dec 2021 08:41:07 -0500 Received: from [2a02:c205:2020:6054::1] (port=33016 helo=tobias.gr) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1muEEo-0002cB-LX for bug-guix@gnu.org; Mon, 06 Dec 2021 08:41:06 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; s=2018; bh=L229HgVLrjIz5 zyv9Tx9IPEK3QcI/6RXAEdvxDUz/l8=; h=in-reply-to:date:subject:cc:to: from:references; d=tobias.gr; b=BbDHuMYJy8zGHvNAlW/XtRjxgoCOwAdjTnDkhD U/NQraWeW/1cDVnBRb7Hy6WpnjG/4JubkW4UpREf3nHEQ3cUATNNxWTIAsrvv+PXW+Evhj /co/TqiMzmJhPbKhGEAkPwGEZVxaCSzSuv2t839E12FRrJ6kc5Ex9y428XiDKeiN0WkcNF YHCvucmsZEe9oEQEeUr/BZZlIU0wLGAV51Yn2R3ICExK82AvA5ahwHJWAHtYgF9kPS8+x6 5QgwBXxd4kYLopDOg1twxdJCrxRpv/d5AmFo1aJ4O2RRuwjWYfDiQfmKGhX6BH0Qa45sN1 fHSYQ565FUanjFokozjG/S1g== Received: by submission.tobias.gr (OpenSMTPD) with ESMTPSA id 1860c1c1 (TLSv1.3:AEAD-AES256-GCM-SHA384:256:NO); Mon, 6 Dec 2021 13:40:56 +0000 (UTC) References: Date: Mon, 06 Dec 2021 14:10:42 +0100 In-reply-to: BIMI-Selector: v=BIMI1; s=default; Message-ID: <878rwxc0kk.fsf@nckx> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="==-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Host-Lookup-Failed: Reverse DNS lookup failed for 2a02:c205:2020:6054::1 (failed) Received-SPF: pass client-ip=2a02:c205:2020:6054::1; envelope-from=me@tobias.gr; helo=tobias.gr X-Spam_score_int: -12 X-Spam_score: -1.3 X-Spam_bar: - X-Spam_report: (-1.3 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RDNS_NONE=0.793, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" Reply-to: Tobias Geerinckx-Rice From: Tobias Geerinckx-Rice via Bug reports for GNU Guix 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=1638798198; 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-type:content-type: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: dkim-signature; bh=L229HgVLrjIz5zyv9Tx9IPEK3QcI/6RXAEdvxDUz/l8=; b=DhmFWoAVfQ5ME2M18+1hBfxRsjoeOMdlEdILzioYaE1IjCPX071MW8vbbajmmaio2M9ngm nyuZWjOalUHt18VuXqVXgh48dGt5TgFRivIrGoteRuCDxiqPokVz2/NnrGIzvfLjUmCKPj gCFQxwyH9z+0qkx1LUEIajr7rcHHoINbZTgn9QlgKyw/W3brR6XaoeSQYQTpEL4jRVyJ3s tonrIXiz0isvhVzsOtRF+vjgoxGcxYuj7MYRzEkiTm69dVL3TsYX3kkyLzTa9Eq4jbV/IG SFWMDfg/NmrZP4csm13Zi4MoG1z2RcCTrx5Ef1PbBKLx/mUGraRaYgmwzIZeKA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1638798198; a=rsa-sha256; cv=none; b=mg0+KURv96MepPDNN5edKuylv7bIY0eIcrrMhuwiWzIR5plHrMg+4Wk8OvG9tjuiq8rsih 4sZpS/JEnyk4vOdczx0ArnyCoS2ClBbtbhHvJ5s/ZU6qn9kpw7T6CrtxpDrWOZBaoLKZUl TLtpU0pr/Wpb7os5Hpa0j7USABPd9BtczaJv00F26ihv13sxjRdKHcEx13bJnyYIukxJ1m jchHz8HhAuOOZJ88TG03oz9hU4wyD/Ulu4OKfWLIl+vgf9mfAArkomXkglyh+qHkiQhiCs LetHEG+c5yHzffn/GFw3k+oYPWTiN67x/hJT5Rc65sV1GDgZ6ZVVxS4nrzvSGA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=tobias.gr header.s=2018 header.b=BbDHuMYJ; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -3.74 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=tobias.gr header.s=2018 header.b=BbDHuMYJ; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 30E022DE9C X-Spam-Score: -3.74 X-Migadu-Scanner: scn0.migadu.com X-TUID: eGPOzvbyVijc --==-=-= Content-Type: multipart/mixed; boundary="=-=-=" --=-=-= Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Luis Felipe, Luis Felipe via Bug reports for GNU Guix =E5=86=99=E9=81=93=EF=BC=9A > UNEXPECTED RESULT > > There is no speech, and the following error is printed: > > Linux: can't open /dev/dsp Attached is a patch that makes Festival work with Linux (ALSA) by=20 default=E2=80=A6 but it's a bit odd that we'd've been shipping a =E2=80=98b= roken=E2=80=99=20 Festival from day 0? (TIL that our default Linux-Libre configurations enable legacy OSS=20 emulation so this could probably be made to work with the right=20 modprobes. Still, this should not be required without good=20 reason, and plenty of OSS-free kernels exist.) I'd like to hear from existing Festival/Guix users if any actually=20 do. Until then, you can easily hack around it: $ cat < ~/.festivalrc (Parameter.set 'Audio_Method 'Audio_Command) (Parameter.set 'Audio_Command "aplay -q -c 1 -t raw -f s16 -r \$SR \$FILE") EOF $ echo sup | festival --tts From=20[0] of all places. aplay is part of alsa-utils. Kind regards, T G-R [0]:=20 https://web.archive.org/web/20110522202347/http://ubuntuforums.org/showthre= ad.php?t=3D171182&page=3D3 --=-=-= Content-Type: text/x-patch Content-Disposition: inline; filename=0001-gnu-festival-Support-ALSA-output.patch Content-Transfer-Encoding: quoted-printable From=2075c12a0838f4355c99ae3ee7f2bf8809be988f9f Mon Sep 17 00:00:00 2001 From: Tobias Geerinckx-Rice Date: Mon, 6 Dec 2021 14:25:08 +0100 Subject: [PATCH] gnu: festival: Support ALSA output. * gnu/packages/speech.scm (festival)[arguments]: Add "LINUXAUDIO=3Dalsa" to #:make-flags. [inputs]: Add alsa-lib. =2D-- gnu/packages/speech.scm | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/gnu/packages/speech.scm b/gnu/packages/speech.scm index cbc46b32b4..bb1a7b8187 100644 =2D-- a/gnu/packages/speech.scm +++ b/gnu/packages/speech.scm @@ -347,7 +347,8 @@ (define-public festival "/bin/rm") (string-append "ECHO_N=3D" (assoc-ref %build-inputs "coreutils") =2D "/bin/printf \"%s\"")) + "/bin/printf \"%s\"") + "LINUXAUDIO=3Dalsa") #:parallel-build? #f ; not supported #:modules ((guix build gnu-build-system) (guix build utils) @@ -505,7 +506,8 @@ (define-public festival (add-before 'configure 'bootstrap (lambda _ (invoke "autoreconf" "-vif")))))) (inputs =2D `(("ncurses" ,ncurses))) + `(("alsa-lib" ,alsa-lib) + ("ncurses" ,ncurses))) (native-inputs `(("autoconf" ,autoconf) ("automake" ,automake) =2D-=20 2.34.0 --=-=-=-- --==-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iIMEARYKACsWIQT12iAyS4c9C3o4dnINsP+IT1VteQUCYa4TGw0cbWVAdG9iaWFz LmdyAAoJEA2w/4hPVW15Fb0A/RtkmIP3zkq4D4KaABJYPLCb+us1vWsZpl2jKbCj ORbLAP9KoO0m940ahG6/rOkrKzhJhKkSU2+YnEk6dFkAb+QPCA== =evz8 -----END PGP SIGNATURE----- --==-=-=--