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

listen.py prints blank lines even if no input is received #3

Open
tklovett opened this issue Jan 8, 2014 · 4 comments
Open

listen.py prints blank lines even if no input is received #3

tklovett opened this issue Jan 8, 2014 · 4 comments

Comments

@tklovett
Copy link

tklovett commented Jan 8, 2014

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







@Katee
Copy link
Owner

Katee commented Jan 8, 2014

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

@tklovett
Copy link
Author

tklovett commented Jan 8, 2014

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.

@MinchinWeb
Copy link

I bumped the threshold to 1500 and the long to 12 on my machine to get good results.

@saileshrepo
Copy link

nt working still.!!!

bt when i stick (with greater force) at my microphone it moves to next line.

nothing else happened!

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

4 participants