Welcome! › Forums › Unity Plugins › Mobile Speech Recognizer › Android runtime permissions › Reply To: Android runtime permissions
August 4, 2020 at 7:56 am
#2150
Vana
Participant
Hello,
this I added to SpeechRecognizerListener.cs Script to make it work:
private void Start()
{
#if PLATFORM_ANDROID
if (!Permission.HasUserAuthorizedPermission(Permission.Microphone))
{
Permission.RequestUserPermission(Permission.Microphone);
}
#endif
}
- This reply was modified 4 years, 4 months ago by Vana.