pjasiun / dtmf-decoder

The Dual-tone multi-frequency signaling Android decoder.
48 stars 19 forks source link

The app is very very slow #2

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Launch the application
2. Hit Start button.
3. Play DTMF tones from any other device.
4. It shows the proper decoded digits but takes very long time(almost a minute 
for each digit)

Is there any way to speed it up?

I am using it in Android Froyo(2.2).

It would be better if u can give comments in the 
application and give some additional info on how can we integrate it with our 
apps.

Any suggestion is appreciated. Thanks.

Original issue reported on code.google.com by shivu.da...@gmail.com on 3 Sep 2013 at 8:03

code-walkers commented 8 years ago

It's not that slow.. I have been testing it all day today. It detects key presses upto 1024 samples. Look at Recognizer.java. You can possibly speed up by reducing the history size and count variables.

You can also play with the magic numbers in StatelessRecognizer.java to go down on number of samples.

Nice App !