From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#72827: [PATCH] Adds NSSpeechRecognitionUsageDescription to Info.plist.in Date: Thu, 29 Aug 2024 08:05:21 +0300 Message-ID: <8634mnhqb2.fsf@gnu.org> References: <87o75cuowa.fsf@yahoo.com> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="8915"; mail-complaints-to="usenet@ciao.gmane.io" Cc: copyright-clerk@fsf.org, alvaro@xenodium.com, 72827@debbugs.gnu.org To: Po Lu Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Aug 29 07:06:34 2024 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1sjXMf-00028t-Kg for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 29 Aug 2024 07:06:33 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sjXMK-00058W-4A; Thu, 29 Aug 2024 01:06:12 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sjXMG-000580-4X for bug-gnu-emacs@gnu.org; Thu, 29 Aug 2024 01:06:08 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sjXMF-0002Yu-S3 for bug-gnu-emacs@gnu.org; Thu, 29 Aug 2024 01:06:07 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=References:In-Reply-To:From:Date:To:Subject; bh=7VBj15nyOFn2cDobwnrrlAC8LKFcs7nzBHwgLaGRLdY=; b=aqoQRmqpt6qkLemVLbp8+7n3U0z3PDfXzvP6hwRhETeDIs7KRD9Ybka6mfOZmjxIUxExytAEDwZrBuJtjDEXshlLhroEpaLL82jwEBYoi4PZz58wWfCUHD5wlb3XEfaxnXM8Q6lbYYMd93XJuP9f+if9pB9rZi/yFma8YiLNz7EF/J2KmZ6SNl+wDWCJnVwcrQuoNgmqHWWGQtwVlghJKgW2c4Cm3fBAwtn/x76c2NdXM+qO8w+iYAI895EeoOeq93xktlGGRkTJV73VmEMDAKHNxRNjHau61c3otfvbsTTPF9tcAVl4/QXwtptJS4Wee2G8fltShMTCYODaHgsnhA==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sjXN8-0000ym-Fm for bug-gnu-emacs@gnu.org; Thu, 29 Aug 2024 01:07:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 29 Aug 2024 05:07:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 72827 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 72827-submit@debbugs.gnu.org id=B72827.17249079873703 (code B ref 72827); Thu, 29 Aug 2024 05:07:02 +0000 Original-Received: (at 72827) by debbugs.gnu.org; 29 Aug 2024 05:06:27 +0000 Original-Received: from localhost ([127.0.0.1]:50090 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sjXMZ-0000xf-2F for submit@debbugs.gnu.org; Thu, 29 Aug 2024 01:06:27 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:33926) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sjXMV-0000xN-US for 72827@debbugs.gnu.org; Thu, 29 Aug 2024 01:06:25 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sjXLX-0002RH-F6; Thu, 29 Aug 2024 01:05:23 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=7VBj15nyOFn2cDobwnrrlAC8LKFcs7nzBHwgLaGRLdY=; b=B0+8nRxh1f3G T0mxwu060RTRZAU4sudvhLheX7icLRkZGhFEbVe9rvWTEPL+ztv0feSdOeIGugWlVersT9Oj+vuXm kSCakCiAImjLiMh3hrD5EEI7PWnIEwK47Hf30WLOvyLCORSF4HiFP6BHbTRsKiOL5x+XhoxsYOEA0 UGyYRy5WxX7ix13+pePmSuWZCIPg8vdhEzsLP1VBhoN6QOhnndfnDYp2lmi6my3RmxAg04dfWxJht tO1PS8pZ3G2PejPHnXekIcizFNAD40mtLWQzm7YGq7qVjNjpZChpADrvwCj2NUchdw1QSeFQFGdCw vJO7og4dcWJXP0ooxcXqnA==; In-Reply-To: <87o75cuowa.fsf@yahoo.com> (bug-gnu-emacs@gnu.org) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:290904 Archived-At: > Cc: copyright-clerk@fsf.org, 72827@debbugs.gnu.org > Date: Thu, 29 Aug 2024 08:57:25 +0800 > From: Po Lu via "Bug reports for GNU Emacs, > the Swiss army knife of text editors" > > Alvaro Ramirez writes: > > > Here's a tiny patch to add NSSpeechRecognitionUsageDescription to > > Info.plist.in. > > > > Without NSSpeechRecognitionUsageDescription, we cannot launch > > processes that use macOS's speech recognition APIs (including built-in > > shells). > > > > Here's an eshell example: > > > > $ macosrec --speech-to-text --input /tmp/audio.mp3 > > abort trap: 6 > > > > With NSSpeechRecognitionUsageDescription in place, macOS displays a > > dialog asking users to grant permission and allows the speech APIs to > > be used from the process. > > > > Added change to Emacs 31 NEWS. If there's any chance the permission > > can make it to 30, I'd be happy to rework the patch as needed. > > > > Cheers, > > What speech recognition services exist on Free (GNU/Linux) systems, and > do they require like intervention on our part to function in Emacs? Can you explain why this question is relevant to the patch? AFAIU, the patch does not invoke any services nor adds any features to Emacs, it just avoids interfering with existing system features. IOW, it makes Emacs behave according to the platform requirements and conventions.