VoiceInk icon indicating copy to clipboard operation
VoiceInk copied to clipboard

AVFoundation library in voiceink code causing huge ram consumption?

Open avinashkanaujiya opened this issue 6 months ago • 5 comments

This is a shot in the dark. I don't know if it's exactly your app, but your app is the latest one I have updated. I saw that you added AVFoundation code, or it was present there, for long time.

I have been using your app, and for the past few days, I have been seeing the com.apple.cmio.registerassistantservice process running in the background. It's taking about 1 GB worth of memory.

Out of 8 GB of RAM available, it's taking about 1 GB. That's a lot. Is this something to do with the AVFoundation library or how it's being used? Now I could be completely wrong.

avinashkanaujiya avatar Jun 23 '25 11:06 avinashkanaujiya

If this service is necessary for VoiceInk to work with the native speech transcription feature, it doesn't make any sense to me, i'm using M1, which does not have macOS 26. This AVFoundation seems to be added for macOS 26, which has native transcription services only available in macOS 26 and above. The app is not using it, at the moment.

Right now, even if it is not being used, it is still calling a service that is taking a huge chunk of memory for nothing in return.

avinashkanaujiya avatar Jun 23 '25 11:06 avinashkanaujiya

https://keith.github.io/xcode-man-pages/com.apple.cmio.registerassistantservice.8.html

avinashkanaujiya avatar Jun 23 '25 11:06 avinashkanaujiya

No, there's no such addition recently. And it shouldn't be using so much resources. Does quitting VoiceInk reduces the memory usage by com.apple.cmio.registerassistantservice?

Beingpax avatar Jun 24 '25 12:06 Beingpax

Sorry, I forgot to mention that I tried using the Apple's built-in API transcription. I got the error that it's not available on my Mac since it's not macOS 26.

After a few hours, I saw this service take a huge amount of RAM.

avinashkanaujiya avatar Jun 26 '25 09:06 avinashkanaujiya

This is only happening after invoking Apple's built-in transcription. Since then, I have rebooted my laptop, and that process has not come back yet. But I also haven't used the Apple's built-in transcription.

avinashkanaujiya avatar Jun 26 '25 09:06 avinashkanaujiya