Script failing due to no prompt for speech recognition?

Get help. Get answers. Let others lend you a hand.

Moderator: Mr_Noodle

Hello all,

I am trying to use the open source tool https://github.com/sveinbjornt/hear to convert downloaded voicemails into text. The script works in zsh as a function and as a standalone script. But when used with Hazel it keeps erroring out. I've enabled debug mode and been banging my head against the keyboard trying to solve it.

I think it has to do with macOS privacy permissions because I discovered that even when attempting to use the script in Shortcuts macOS presents this prompt (had a screenshot but don't have a place to host it quickly):

"siriactionsd" Would Like to Access Speech Recognition.
Speech data from this app will be sent to Apple to process your requests. This will also help Apple improve its speech recognition technology.


I think Hazel itself may need to be aware of this system for the prompt to pop? Not sure.

Here is the embedded script, jic there is another problem here that I'm missing.

Code: Select all
/usr/local/bin/hear -p -i "${1}" >> "${1%.*}.txt"


Any assistance you can provide would be great.
mender
 
Posts: 1
Joined: Wed May 31, 2023 3:04 pm

I think I'd need to add a thing to be able to request permissions for this. Maybe try and AppleScript instead and see if that brings up the prompt?
Mr_Noodle
Site Admin
 
Posts: 11195
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City


Return to Support