all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#72827: [PATCH] Adds NSSpeechRecognitionUsageDescription to Info.plist.in
@ 2024-08-27  9:12 Alvaro Ramirez
  2024-08-29  0:57 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2024-08-30  8:10 ` Stefan Kangas
  0 siblings, 2 replies; 10+ messages in thread
From: Alvaro Ramirez @ 2024-08-27  9:12 UTC (permalink / raw)
  To: 72827; +Cc: copyright-clerk

[-- Attachment #1: Type: text/plain, Size: 1053 bytes --]

Hi folks,

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,

Álvaro

ps. My copyright assignment paperwork has been is 
submitted. Awaiting copyright-clerk reply.

In GNU Emacs 31.0.50 (build 1, aarch64-apple-darwin23.5.0, NS
 appkit-2487.60 Version 14.5 (Build 23F79)) of 2024-08-27 built on 
 jiko
Windowing system distributor 'Apple', version 10.3.2487
System Description:  macOS 14.5

Configured using:
 'configure --with-ns'


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-Adds-NSSpeechRecognitionUsageDescription-to-Info-plist-in.patch --]
[-- Type: text/patch, Size: 1963 bytes --]

From db657bf4373115883634932a9a8200043b046184 Mon Sep 17 00:00:00 2001
From: xenodium <me+gh@xenodium.com>
Date: Tue, 27 Aug 2024 09:36:56 +0100
Subject: [PATCH] Adds NSSpeechRecognitionUsageDescription to Info.plist.in

Without it, we cannot launch processes that use macOS's speech
recognition APIs.

With NSSpeechRecognitionUsageDescription in place, macOS displays the
dialog asking the user to grant permission and allows the speech APIs
to be used from the process.
---
 etc/NEWS                         | 6 ++++++
 nextstep/templates/Info.plist.in | 2 ++
 2 files changed, 8 insertions(+)

diff --git a/etc/NEWS b/etc/NEWS
index 07d1cce0966..556b6005f32 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -43,6 +43,12 @@ The 'find-function', 'find-library', 'find-face-definition', and
 'find-variable' commands now allow retrieving previous input using the
 usual minibuffer history commands.  Each command has a separate history.
 
+---
+** NSSpeechRecognitionUsageDescription now included in Info.plist (macOS).
+Should Emacs (or any built-in shell) invoke a process using macOS speech
+recognition APIs, the relevant permission dialog is now displayed, thus
+allowing Emacs users access to speech recognition utilities.
+
 ** Minibuffer and Completions
 
 +++
diff --git a/nextstep/templates/Info.plist.in b/nextstep/templates/Info.plist.in
index beddbf4a893..192c061bd1e 100644
--- a/nextstep/templates/Info.plist.in
+++ b/nextstep/templates/Info.plist.in
@@ -693,5 +693,7 @@ along with GNU Emacs.  If not, see <https://www.gnu.org/licenses/>.
         <string>Emacs requires permission to access the Downloads folder.</string>
         <key>NSRemovableVolumesUsageDescription</key>
         <string>Emacs requires permission to access files on Removable Volumes.</string>
+        <key>NSSpeechRecognitionUsageDescription</key>
+        <string>Emacs requires permission to handle any speech recognition.</string>
 </dict>
 </plist>
-- 
2.39.3 (Apple Git-146)


^ permalink raw reply related	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2024-08-31 11:05 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-08-27  9:12 bug#72827: [PATCH] Adds NSSpeechRecognitionUsageDescription to Info.plist.in Alvaro Ramirez
2024-08-29  0:57 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-08-29  5:05   ` Eli Zaretskii
2024-08-29  7:07     ` Alvaro Ramirez
2024-08-30  8:10 ` Stefan Kangas
2024-08-30  9:18   ` Alvaro Ramirez
2024-08-30 16:08     ` Stefan Kangas
2024-08-30 17:45       ` Alvaro Ramirez
2024-08-31 10:39         ` Eli Zaretskii
2024-08-31 11:05           ` Alvaro Ramirez

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.