Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hope I can access to rawscore... #51

Open
kotran88 opened this issue May 11, 2023 · 1 comment
Open

Hope I can access to rawscore... #51

kotran88 opened this issue May 11, 2023 · 1 comment

Comments

@kotran88
Copy link

I changed

final double detectionThreshold = 0.7;

to 0.7 but I think sometimes even if rawscore value is about 0.5 , then it triggered....
스크린샷 2023-05-11 오후 12 47 55

with

result
        ?.listen((event) => {
              print("Recognition Result: " +
                  event["recognitionResult"].toString()),

I can't get rawScore value,
if I can get it, I can filter out on my self.

Thank you for great plugin.

@Caldarie
Copy link
Owner

Hi @kotran88,

Set the following value below to true.

 TfliteAudio.loadModel(
      model: 'assets/google_teach_machine_model.tflite',
      label: 'assets/google_teach_machine_label.txt',
      outputRawScores: true, //Set this true 
      inputType: 'decodedWav');

Let me know if this solves your problem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants