Skip to content
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

Using whisper dictation on MacOS #86

Closed
doctorguile opened this issue Oct 26, 2023 · 1 comment
Closed

Using whisper dictation on MacOS #86

doctorguile opened this issue Oct 26, 2023 · 1 comment

Comments

@doctorguile
Copy link
Contributor

I know dictation is not a function provided by org-ai but it was prominently featured in the demo video and @rksm also provided his config which greatly helps with figuring out what value to set for whisper--ffmpeg-input-device

https://gist.github.com/rksm/04be012be07671cd5e1dc6ec5b077e34

I'm using Ventura 13.6 and the dictation function failed silently, it turns out that ffmpeg is getting killed with "abort trap: 6"
because MacOS won't allow access to the mic unless the app requested it and user grant it explicitly.

And since emacs doens't do that by default we need to do something like this

https://superuser.com/questions/1441270/apps-dont-show-up-in-camera-and-microphone-privacy-settings-in-macbook

sqlite3 ~/Library/Application\ Support/com.apple.TCC/TCC.db

insert into access values  ('kTCCServiceMicrophone','org.gnu.Emacs', 0, 2, 2, 1, null, null, null, 'UNUSED', null, 0, 1698279008);

select * from access where service = 'kTCCServiceMicrophone' ;

.quit

I thought it might help if this gets mentioned in this repo somewhere or add as comments in the above gist

Cheers.

@rksm
Copy link
Owner

rksm commented Oct 26, 2023

Great, thank you. There are steps in the readme for running tccutil.py from inside Emacs which should solve the same: https://github.com/rksm/org-ai/#macos-specific-steps. But I added a ref to this issue as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants