WonyJeong / flutter_piano_audio_detection

Flutter Piano Audio Detection implemented with Tensorflow Lite Model (Google Magenta)
MIT License
38 stars 11 forks source link

can not run this example #6

Open javadrajabi opened 2 years ago

javadrajabi commented 2 years ago

i got this error:

[+1825 ms] V/FLUTTER_PITCH_TRACKER(20514): Audio Engine Prepare [ +1 ms] I/tflite (20514): Initialized TensorFlow Lite runtime. [ ] V/FLUTTER_PITCH_TRACKER(20514): Tflite Model Successfully Loaded [+3510 ms] W/System (20514): A resource failed to call close. [ +1 ms] W/System (20514): A resource failed to call close. [+15148 ms] I/ViewRootImpl@c809cb6MainActivity: ViewPostIme pointer 0 [ +76 ms] I/ViewRootImpl@c809cb6MainActivity: ViewPostIme pointer 1 [ +308 ms] V/FLUTTER_PITCH_TRACKER(20514): Start Recognition [ +36 ms] E/IAudioFlinger(20514): createRecord returned error -1 [ +1 ms] E/AudioRecord(20514): createRecord_l(0): AudioFlinger could not create record track, status: -1 [ ] E/AudioRecord-JNI(20514): Error creating AudioRecord instance: initialization check failed with status -1. [ ] E/android.media.AudioRecord(20514): Error code -20 when initializing native AudioRecord object. [ ] E/FLUTTER_PITCH_TRACKER(20514): Audio Record can't initialize!

WonyJeong commented 2 years ago

Did you complete the setup by following the guide?(permission_handler, tflite model file...)

javadrajabi commented 2 years ago

I have done the step-by-step guide. I also gave a permission. Even the file can be loaded, but there is a problem in accessing the resources. resource failed to call close.

WonyJeong commented 2 years ago

Did you run it on a real device?

If you also have other error messages, please comment :)

shahzadkhan1998 commented 2 years ago

yes real device still error

Sums-shadow commented 1 year ago

Same error, any issue?

Sums-shadow commented 1 year ago

I mannually allow recording permission on setting and its works, I think its just permission issue