jamsch / expo-speech-recognition

Speech Recognition for React Native Expo projects
MIT License
128 stars 11 forks source link

Unnecessary permissions on iOS when using on-device recognition #56

Open msschwartz opened 1 week ago

msschwartz commented 1 week ago

If user is using the on-device recognition, we do not need to prompt the user for speech recognition permission.

Speech data from this app will be sent to Apple to process your requests. This will also help Apple improve its speech recognition technology.

This can be a show stopper on apps with sensitive data that users prefer to keep private.

A quick proof-of-concept PR has been created to show how this can be improved to separate the microphone permissions from speech recognizer permissions. https://github.com/jamsch/expo-speech-recognition/pull/55

jamsch commented 1 week ago

Thank you @msschwartz! Yep, I overlooked this and we definitely need more granular permissions here in cases like this, as well as for troubleshooting permissions issues. I'll be able to review your PR later today but my initial impressions are: