ESC10-CoreML icon indicating copy to clipboard operation
ESC10-CoreML copied to clipboard

App crashed when clicked on "Analyze Random Audio Clip"

Open xianbaoqian opened this issue 3 years ago • 2 comments

Hi Nick,

Thanks for building this reference app. I have little experiences with Apple's development toolchain so having a workable reference app is very helpful to me.

I managed to build and run this app on my iPhone, but I have some question using it.

When I open the application, I don't see anything classification results despite that I was making various kind of sounds. The only clickable button is "Analyze Random Audio Clip". When I click on it, the following crash appears.

Any thoughts or suggestions?

Thanks,

Thread 1: Fatal error: Failed to schedule file at file:///private/var/containers/Bundle/Application/2D555890-8AF0-4CB8-9E2C-7C5F5EDB6EE4/ESC10-CoreML-Demo.app/dogs.wav: Error Domain=com.apple.coreaudio.avfaudio Code=1954115647 "(null)" UserInfo={failed call=ExtAudioFileOpenURL((CFURLRef)fileURL, &_extAudioFile)}

Screen Shot 2021-06-11 at 9 21 51 PM

xianbaoqian avatar Jun 11 '21 13:06 xianbaoqian

@xianbaoqian I believe this is a codec issue, try replacing the test wav files with some audio files that you can open on your machine. It worked for me

ninaataimi avatar Jun 23 '21 07:06 ninaataimi

Thanks Nina. I'll give it a try!

xianbaoqian avatar Jun 23 '21 14:06 xianbaoqian