-
-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
hear works on Terminal, but not on Alacritty: NSSpeechRecognitionUsageDescription key missing. #23
Comments
Strange issue. The hear binary does contain an embedded Info.plist: https://github.com/sveinbjornt/hear/blob/master/Info.plist This must be something specific to Alacritty, since everything runs just fine in iTerm and Terminal.app. |
I tried adding NSSpeechRecognitionUsageDescription to Alacritty's Info.plist, and was able to reproduce your result. $ /Applications/Alacritty.app/Contents/MacOS/alacritty At no point does Alacritty appear in this permissions list in Settings despite the changed Info.plist: |
I haven't figured out why but this lets me use |
I encountered the same zsh abort issue when running |
When I run 'hear' from Alacritty it does not ask access to speech recognition and return 'zsh: abort'.
Console.app:
On the other hand, when I tried to run 'hear' using Terminal.app, it worked perfectly. Terminal asked for access to speech recognition and started outputting the transcribed text.
Apple documentation says that "You must include the NSSpeechRecognitionUsageDescription key in your app’s Info.plist file. If this key is not present, your app will crash when it attempts to request authorization or use the APIs of the Speech framework."(1) Because "This key is required if your app uses APIs that send user data to Apple’s speech recognition servers."(2)
I added to /Applications/Alacritty.app/Contents/Info.plist:
Now 'hear' exit with:
Does anyone know how to solve this issue? Or have any suggestion?
Thanks!
The text was updated successfully, but these errors were encountered: