mit-cml / appinventor-extensions

Source code of extensions published for MIT App Inventor
Apache License 2.0
85 stars 93 forks source link

PersonalAudioClassifier extension does not classify #39

Open kdclang opened 4 years ago

kdclang commented 4 years ago

Describe the bug

The PAC extension originally worked with the template https://drive.google.com/open?id=19quTQ9UWVSQ3VfKKh9R-zBiE35wkKy93

Now, although you get a ClassifierReady event, it never triggers a GotClassification event.

Affects

Expected behavior With attached aia compiled and installed on device, you should see "Ready to authenticate" label at bottom of screen. When you click on record and record yourself saying "hello" or "goodbye" , the status label should display response from the classifier, and you should hear "Sorry you cannot open my diary".

voice_authentication_diary_complete.aia.zip

Steps to reproduce

Compile attached aia into apk (Companion manifest does not allow use of microphone with aia), install on device, when app is opened, you get "Ready to authenticate" label that signals classifier is ready. Then press Record button and record "hello" or "goodbye". You should see the status label at the bottom change to the response from classifier, but ... nothing happens.

ewpatton commented 3 years ago

This should work with the version I just published on the extensions page. Please update the extension and confirm. It has an updated error block as well that includes an errorMessage, so you'll need to swap in the new error handler in the blocks code.