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

Continuous Audio Recognize #43

Open SanaSizmic opened 2 years ago

SanaSizmic commented 2 years ago

Hi, How to continuously recognize audio and stop recognize audio when clicks on the mic icon button.

Caldarie commented 2 years ago

Set numOfInference to a very high number. For example, numOfInferences = 99999

For more info on the parameters, please look here

EParisot commented 1 year ago

for anyone concerned, the max is around 999999999, one more nine and we got an exception (long can't be casted to int)

Caldarie commented 1 year ago

@EParisot thanks for the report! when given time, I will modify the plug-in to support continuous runs without the need to set to a higher number