From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-0.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FROM,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 27807 invoked from network); 9 Sep 2022 19:25:05 -0000 Received: from hurricane.the-brannons.com (2602:ff06:725:1:20::25) by inbox.vuxu.org with ESMTPUTF8; 9 Sep 2022 19:25:05 -0000 Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by hurricane.the-brannons.com (OpenSMTPD) with ESMTP id 396fad3e for ; Fri, 9 Sep 2022 12:25:03 -0700 (PDT) Received: from mail-wm1-x32c.google.com (mail-wm1-x32c.google.com [2a00:1450:4864:20::32c]) by hurricane.the-brannons.com (OpenSMTPD) with ESMTPS id c934c34e (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO) for ; Fri, 9 Sep 2022 12:24:57 -0700 (PDT) Received: by mail-wm1-x32c.google.com with SMTP id bd26-20020a05600c1f1a00b003a5e82a6474so2140370wmb.4 for ; Fri, 09 Sep 2022 12:24:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date; bh=BCVYvU2L/+tfXYcue+EA7mSo84/FDlKnhSa5MfPseGA=; b=WJ5tlfKPOk9NgQoZ47+iwl469hbGuaLCKhYmHKAGQ8lq/6xWEerKL0d2FYnGPk4bGw SzeVYkTkJLCYoqX/x6jkhvGrXj2Rx9vdW3QMJdQ6qGYnG8tJ67bUxl23JnkeBKbxnJpx lUo1EfcuLS2ZxLiNXPvqc4vp1a28i8wZH2TJzRwVBh1xT+WyF+Wnx3tq3RmuW/JQzx7z gRSTy7Q/SFzsx6SdV4z57LorAbYO4iw1MG8tKzictYaqcHgKZrPHOH46vDk0eoBd6DX7 U/sd6KzIQyeLw5SG3aqN8012g9Rl7pfoadgnmZ80f1Gp1ImDieiHidWRKnt54Fn8mMja KA6Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date; bh=BCVYvU2L/+tfXYcue+EA7mSo84/FDlKnhSa5MfPseGA=; b=3K2qmFW5v8ajYgMGOzy9YaI8N1Fwmz6AMymy3B7+nBxDoVQ1fHEqZLnRejvlZ2p8i+ 6+aJ9kemyx1fIvEi2QeypSExNVQEUZgGra7XoH/5IOSlhWK8E00x18p3n+dGdtTx2ZAe FpYLnHPg3Q35OBiRJWpfkUNtPNItJ4H3Bp+usUWJtNuUuxPzCjjHWNNF4UeTC3TMzfeL qbb5To9ovzfajPqZfSPQTzXAtaXLJDucYS8Fpi9A/X/DL/KgoMG4yRsgMUJe7g8pP56c 43WLPSkYnUQLD5BQowqFR9soRB8zyLLNES+1cTBSOq3EqaItIKGXFsk3R/yMEmir/ceo xsVQ== X-Gm-Message-State: ACgBeo16UWN8XJpunJgp1j/70AKl0DMoBQTtJoAtDF/iXCgVnWAwHs/i 0D+ELi8Dkk+HbepIl1sMVFw= X-Google-Smtp-Source: AA6agR7ct7orPiZB/62NGERVN7NB2fKGwylM3j43Ek4Z6lOAo6cJfT7PNegHaBxxPNVcx3LbDtTErA== X-Received: by 2002:a05:600c:1c0f:b0:3a5:4d6b:a883 with SMTP id j15-20020a05600c1c0f00b003a54d6ba883mr6556886wms.45.1662751495633; Fri, 09 Sep 2022 12:24:55 -0700 (PDT) Received: from pinebook-pro (8.f.6.7.4.5.2.5.4.5.a.b.8.5.e.b.1.4.0.9.2.4.1.1.0.b.8.0.1.0.0.2.ip6.arpa. [2001:8b0:1142:9041:be58:ba54:5254:76f8]) by smtp.gmail.com with ESMTPSA id e11-20020adffd0b000000b00228da845d4dsm1105511wrr.94.2022.09.09.12.24.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 09 Sep 2022 12:24:55 -0700 (PDT) Date: Fri, 9 Sep 2022 20:28:01 +0100 From: Adam Thompson To: "Serge E. Hallyn" Cc: Patrick Smyth , edbrowse-dev@edbrowse.org Subject: Re: Cli-focused screen reader Message-ID: References: <87czc4wgl6.fsf@gmail.com> <20220909183637.GA18584@mail.hallyn.com> X-BeenThere: edbrowse-dev@edbrowse.org List-Id: Edbrowse Development List MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220909183637.GA18584@mail.hallyn.com> On Fri, Sep 09, 2022 at 01:36:37PM -0500, Serge E. Hallyn wrote: > On Fri, Sep 09, 2022 at 02:25:09PM -0400, Patrick Smyth wrote: > > Hi all, > > > > Apologies if this is a basic or trivial question, but I wanted to ask about > > setting up screen readers for the command line on Linux. I am using Linux > > Mint (functionally Ubuntu LTS), and while I can use Orca to read X11 > > terminals, it's quite slow and annoying to use, and I'd prefer something > > specific to the terminal. I'm also pretty happy with speakup when I drop out > > of the graphical interface, so not looking for anything there. ... > > I've tried a couple command-line specific screen readers, and I've had a lot > > of trouble getting them to work. The two I've tried recently are tdsr > > (https://github.com/tspivey/tdsr) and fenrir > > (https://github.com/chrys87/fenrir). Setting aside Fenrir, since the setup > > is a lot more involved, when I run tdsr I get the following error > > > > ModuleNotFoundError: No module named 'speechd' ... > I'm sure there's much better things out there and I look forward to seeing > them listed here :) But if I were to want this right now, I would write a > brief wrapper to wrap around a shell, which writes fd 1 and 2 output to > espeak. (I've used espeak for several things like this, and love how easily > i can switch the voice and accent and speed and pitch.) I'd be curious > however, for your use case, what you'd want to do about input. Do you only > want output to be spoken, or do you want each character spoken, or the input > spoken when you hit return? Also not sure whether you'd want stdout and > stderr interwoven, or whether that depends on whether the command has exited > or is interactive, etc. It sounds like the use-case here is to run within a graphical environment but with a terminal screenreader. In that case simply outputting the FDs from a shell (although a nice idea) probably won't do since there'll be no review functionality etc. Tbh, I usually just use a console for CLI stuff and a graphical environment for graphical stuff and take the sub-optimal experience in the cases where I need to have the two interact (I spend most of my day job in the console so a CLI-optimised experience is preferable). To the original question though, at least in Debian, I seem to remember there's a python-speechd (or probably python3-speechd) package one can install for the speech-dispatcher python API. If not, or if it's not in Mint, does TDSR have a requirements.txt file? If so I'd try installing with pip (or pip3 since I remember it being Python3) and let that do the hard work. As to whether this list is the right place, I remember there's another list for general command-line stuff which I'm also subscribed to although I've lost the subscription response and thus have totally forgotten the address. Cheers, Adam.