Caldarie / flutter_tflite_audio

Audio classification Tflite package for flutter (iOS & Android). Can support Google Teachable Machine models
MIT License
64 stars 26 forks source link

Is it possible to record the audio at the same time? #21

Closed joknjokn closed 3 years ago

joknjokn commented 3 years ago

Hi,

I'm wondering if it's possible to record audio at the same time the model is running?

Basically, I want to build something that saves snippets of the audio when specific things are detected.

Thanks, Jonas

Caldarie commented 3 years ago

hi @joknjokn,

Its possible for a model to output the starting and ending time when it detects a specific sound. However, this is based on how you train your model, not on this plugin.

As for saving the audio file, I have yet to implement this feature on this plugin, but its doable. You can manually splice the audio once you have saved the file, or edit the plugin yourself to do so asynchronously