jjordanoc / azure_speech_recognition_null_safety

A Flutter plugin that enables interaction with the Azure Cognitive Services Speech-To-Text API
GNU General Public License v3.0
11 stars 14 forks source link

Crashes: AudioFlinger could not create record track #6

Closed mikron123 closed 1 year ago

mikron123 commented 1 year ago

Tried to add permissions, etc.

E/AudioRecord(13643): createRecord_l(0): AudioFlinger could not create record track, status: -1 E/AudioRecord-JNI(13643): Error creating AudioRecord instance: initialization check failed with status -1. E/android.media.AudioRecord(13643): Error code -20 when initializing native AudioRecord object. W/ms.VoiceChatGPT(13643): Attempt to remove non-JNI local reference, dumping thread E/AndroidRuntime(13643): FATAL EXCEPTION: main

mikron123 commented 1 year ago

Looks like it was due to the lack of permission handling. Worth adding to the documentation.