It is invoked as:-
Usage:- [./]shush.sh <time in seconds from 18 to 2700> [sensitivity [Hh|Mm|Ll]]<CR>
'Sensitivity' defaults to [M]edium if omitted.
It has been developed on this MBP, OSX 10.12.2 and works in 'bash', 'dash' and 'sh' modes.
It has been tested on this machine and CygWin(64). As it is OSX centric I have been unable to fully test on Linux. CygWin(64) is SSLLOOWW.
When run it cycles approx 9 second noise bursts until the allocated time is reached, then, it cycles a recording mode to detect if baby is crying or not.
If baby wakes up and starts crying then the recording is read to see if it in the limits of the sensitivity selected.
If it is it then cycles the playback of a different noise sample for the run time bursts allocated.
To quit just press Ctrl-C whilst any noise burst is playing.
There are NO extra dependencies required only a virgin install of Linux, CygWin or OSX is needed.
I won't hold my breathe with the reliability of QuickTime Player as coding for it could be broken by any future OS change, but fingers crossed.
This User Gave Thanks to wisecracker For This Post:
With a little bit of work, was able to build a nice "Wuhan Coronavirus Status" app using MQTT and the IoT-OnOff app. More on this technique here:
ESP32 (ESP-WROOM-32) as an MQTT Client Subscribed to Linux Server Load Average Messages
The result turned out nice, I think. I like the look and... (10 Replies)
hi all,
first off thesis my first post so if i am not in the right forum, i apologize.
i'm an absolute newbie to unix. i've been reading my books and studying my crib sheets etc. but... :/
i want to accomplish two things.
1. search and remove duplicate files i.e.. audio, doc alias etc.... (1 Reply)
Hi Guys
What do i need to change so that anyone can rsh into the machine, i am sure it is in the pam.d/rshd buti am hving and issue wiith it,
at the moment only someone who has a pysical account on the machine can rsh in
even with all the users in the passwd file it does not work
... (2 Replies)
This is a very crude attempt in Bash at something that I needed but didn't seem to find in the 'sleep' command. However, I would like to be able to do it without the need for the temp file. Please go easy on me if this is already possible in some other way:
How many times have you used the... (5 Replies)
Hi forum,
I'm administrating a workstation/server for my lab and I was wondering how to optimize OSX. I was wondering what unnecessary background tasks I could kick off the system so I free up as much memory and cpu power.
Other optimization tips are also welcome (HD parameters, memory... (2 Replies)
Hi all, I have a query about multithreading. What I would like to do is, at the start of my main update() function, start a couple of threads in parallel, once they are all complete carry on with my main update function.
void update() {
thread1->update(); // fluid solver
... (3 Replies)
I finally broke down and decided to buy a new piece of hardware. I think I made the right decision when I chose an Apple iBook - OSX is incredible! I haven't used a Mac since System7.5, and 10.2 is just blowing me away!
Best of all, it's easy to use for people who are not used to Mac, but if I... (5 Replies)