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

Temporarily disabling "Microphone access" centrally breaks access to Kõnele services #99

Open
Kaljurand opened this issue Jan 8, 2023 · 1 comment

Comments

@Kaljurand
Copy link
Owner

Steps:

  • disable Settings -> Security & privacy -> Privacy controls -> Microphone access (also possible via notification tiles)
  • recognition now fails: mic button turns gray after being pressed but no error message is shown
  • enable Microphone access again
  • recognition still fails with no error message (however not when Google's service is used)

Rebooting the device fixes the issue.

TODO:

  • show relevant error message if microphone access is disabled centrally (and grey out + disable the mic button)
  • make sure recognition works if all the permissions have been granted
@Kaljurand
Copy link
Owner Author

Perhaps follow some of the best practices discussed in https://developer.android.com/training/permissions/explaining-access, e.g.

Wait to access the device's microphone until the user has granted the RECORD_AUDIO permission to your app.

Also, consider that

When the user turns off microphone access, your app receives silent audio.

and make sure Kõnele correctly deals with silent audio, e.g. when the Microphone access is temporarily disabled during a longer recording.

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

1 participant