Hearing Aid...
Hi folks yet another bizarre piece of code that is Apple OSX 10.12.x to at least 10.14.1 specific.
It requires only a default OSX install, and the internal microphone along with an external headphone assembly.
Pre-amble, 14-02-2019:
For over 3 weeks now I have been suffering a serious head cold and for the last 10 days serious hearing loss due to it.
This is supposedly temporary but it can be permanent, I won't know until March 7th when I am to see the doctor again.
The loss of hearing is so serious that it is around 30dB down in both ears. Sooooo this working idea was the result.
As I am nearly always on the terminal I decided to create a hearing aid using my enclosed, bin style, headphones without a microphone.
It is a simple shell script that calls an AppleScript to start QuickTime Player in standby Audio Recording mode.
Initialisng for the first time:
1) Copy the script onto your preferred location, I called it HA.sh.
2) Plug in the headphones and set up the audio from System Preferences.
3) Open up a terminal and cd /path/to/your/preferred/location for 'HA.sh'.
4) Set its access to chmod 755 HA.sh.
5) Start the script, something like ./HA.sh
6) Due to Apple's security you will probably be prompted to allow the terminal to access the microphone, just accept it.
7) The Audio Recording window will open and a dialog window will warn you to set the monitor volume to maximum.
8) The terminal will be in standby mode and can be exited if necessary.
9) Drop/minimise the Audio Recording window onto the 'DOCK' and leave, in standby mode.
10) This is super sensitive and you can alter the output from either the main volume or independently with the Recorder's own output level control.
11) Other inputs, like youtube still work and don't affect the Recorder at all.
12) When no longer needed close down the Recorder and QT in the normal GUI manner.
As I don't have access to hearing aids yet and I am on the computer a lot the this is a godsend.
It does have a slight delay from real time but it took me seconds to get used to it.
Enjoy hearing again...
Bazza.
Last edited by wisecracker; 02-14-2019 at 01:21 PM..
These 4 Users Gave Thanks to wisecracker For This Post:
It is not so much being unwell, I can handle that, but it is an embarrassment when you can't hear what people are saying and have to keep asking them to repeat, louder.
It is super-sensitive and the idea sprung into life a couple of days ago. It is strange when one hears ones own voice slightly delayed but I got used to it in seconds.
The AppleScript can be shaved a little, but I have tried to make it future proof. Difficult with Apple updates and upgrades and security obsessions.
My hearing is about 80-85% back and I no longer need to use this hearing aid script whilst on my Apple gear.
The fact that it works has been an absolute Godsend during my period of serious deafness over the last three weeks or so.
Bazza...
These 2 Users Gave Thanks to wisecracker For This Post:
In my project we have 3 Solaris 10 servers which need to be monitored for various parameters shown under "prstat -a" command. A shell script runs every 15 mins and captures prstat output by writing it in a log file. I manually download the log file at the end of the day and build graphical charts... (5 Replies)