listen.py prints blank lines even if no input is received
tklovett opened this issue · 4 comments
I think it should not print a blank line or new line if no input was received. I'm getting output like:
e
c
e
What's happening here is listen.py thinks it is getting input. Quietnet is a toy and in no way robust. The settings in options.py were chosen because they worked for me in the environment I tested in with the machines I was using.
The most important values to play with if you want it to work in your environment is
- The (totally sketchy) threshold for how much of the frequency needs to be in a sample for it to be considered on
- How long a bit in on for
If you change any values in options.py you will need to restart both listen.py and send.py. Also make sure your speakers are turned up as much as possible.
Sorry it isn't more robust, it would really be better if I had used an encoding scheme with error correction. Good luck! :D
What input does it think its getting if it prints out a blank line? Maybe you could add a line length check before the line is printed.
I bumped the threshold
to 1500 and the long
to 12 on my machine to get good results.
nt working still.!!!
bt when i stick (with greater force) at my microphone it moves to next line.
nothing else happened!