1

I was following this help in order to implement a speech recognizer offline using the GlassVoice.apk.

I was implementing a solution similar at this one :

    String[] items = {"The cat", "The dog", "The lion", "The next step"};
    mVoiceConfig = new VoiceConfig("MyVoiceConfig", items);
    mVoiceInputHelper = new VoiceInputHelper(this, new MyVoiceListener(mVoiceConfig),
    VoiceInputHelper.newUserActivityObserver(this));

But my problem is when I say just "cat" or "next", the speech recognizer finds the nearest word, which is "The cat" or "The next step", because the accuracy might be around 0.5.

I would like the speech recognizer not to find the nearest word but the total work.

Is it possible to increase the accuracy (around 0.85/0.9 would be perfect)?

Community
  • 1
  • 1
Guillaume agis
  • 3,756
  • 1
  • 20
  • 24

1 Answers1

0

You can try this, it's a bit more accurate

mVoiceConfig.setSensitivity(VoiceConfig.Sensitivity.CONSERVATIVE);
Alex-alex
  • 512
  • 7
  • 15