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

Feature Request: ScreamLock #83

Open
PowerPress opened this issue Jan 13, 2017 · 6 comments
Open

Feature Request: ScreamLock #83

PowerPress opened this issue Jan 13, 2017 · 6 comments

Comments

@PowerPress
Copy link

Have the app monitor the decibels coming from the microphone and let the user set a threshold. If the threshold is passed shut down the PC. Example being prevented from touching your PC but by screaming or a loud noise would trigger the shutdown allowing a hands free system.

@Lvl4Sword
Copy link

I don't see how this would be beneficial, considering that kind of defeats having a conversation with a loud individual, or from playing any kind of music..

@Lvl4Sword
Copy link

import pyaudio
import struct
import sys


THRESHOLD = 1

#open your audio stream    
chunk = 1024
FORMAT = pyaudio.paInt16
CHANNELS = 1
RATE = 44100

p = pyaudio.PyAudio()

stream = p.open(format=FORMAT,
                channels=CHANNELS, 
                rate=RATE,
                input=True,
                output=True,
                frames_per_buffer=chunk)

while True:
    data = stream.read(chunk)
    print(struct.unpack('1024h',data))
    if any(data) >= THRESHOLD:
        print('AAAAAAAAAHHHHHHHHHHHHHHH')

Here's something you could certainly play with, though ^

@PowerPress
Copy link
Author

PowerPress commented Sep 27, 2018

I imagine it working by setting a decibel/input volume threshold once a sound reaches or passes that initiate usbkill protection procedures. So for example you are listening to Pandora or such and see the current recording volume/decibels which shouldnt change unless you increase the volume. You then adjust the screamlock input to something higher than that. You can still have conversations or listen to radio or anything else. But any noises louder than that allows you to remotely lock your PC while you are restrained or x feet away from it.

Old frosty was tackled while his laptop was taken from him. If he had screamlock even restrained he could have protected his data thats where the idea comes from. The sound is irrelevant as long as something is received above the preset limit.

@ghost
Copy link

ghost commented Jul 29, 2023

I'm working on adding this to my fork right now.

All help is appreciated.

Since most of the logic that handles the settings is in the main usbkill.py, I'll see if I can include some of the sample code above and tinker until it works. It'll take a long time for me though.

@Lvl4Sword
Copy link

@midnightcruising If you're looking for something that does more than USB, there's always https://github.com/GoldenSwordLLC/Killer
To my understanding, USBKill is no longer being worked on.

@ghost
Copy link

ghost commented Jul 29, 2023

@midnightcruising If you're looking for something that does more than USB, there's always https://github.com/GoldenSwordLLC/Killer To my understanding, USBKill is no longer being worked on.

I'll keep my own fork up just because I want to continue on the legacy of the OG kill switch, but I will definitely use this as my personal program if I wish.

Thanks for the suggestion.

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