I use Linux Mint with KX Studio at work. Sometimes I don't hear the wired phone ringing right next to me.
I taped old earbuds to the bottom of the phone chasis. I've connected this to the mic input of my PC and I have audio feed from there (in stereo!).
I'll capture a phone ringing sample and I'd like my system to analyze this audio in realtime and somehow let me know when it detects that my phone is ringing.
I'm thinking about maybe using the recorded sample as an IR and process the sound input through that.
The IR will filter out any frequencies not present in the original sound, so everything else filtered thorugh this should come out much quieter, and oncve all the frequencies match perfectly, the signal level should be the highest. After that using a simple gate can make this signal break though to my headphones, or using an additional sidechain compressor I can make all the other sound attenuate to let me hear the phone ringing - or a combination of both.
I also thought about maybe adding a MIDI trigger and a MIDI-listening Bash script to add a desktop notification pop-up to the system
I'll play around and see what I can get.
--- PRACTICE
I've created a Carla setup that does the job.
It feeds the system input to IR convolution reverb processor that uses a phone alarm sample.
Then this runs to a Calf Gate to make sure only the loudest signal gets through.
This is then fed to an AM pitchshifter that shifts this 2 octaves down.
This goes to a plugin called "Onset Trigger - Bassdrum Detection Mono" - the plugin only reacts to lower frequencies, so this is why the pitchshifter is needed.
This sends MIDI notes to ZynAddSubFX, that produces a cool but pleasant "alarm" sound.
Also a Calf Sidechain Compressor is used to attenuate PulseAudio JACK Sink while the phone is ringing. A reverb is put inthe middle to make the attenuation smoother (I could probably just use the SIdechain Compressor Attack/Release).
Slapping the phone chasis very hard with my hand triggers the alarm, but that's not something that happens randomly. And calliong that phone also triggers the alarm. So I guess this works!
One more thing is to make this run with my system.
So I wrote a bash script:
Code: Select all
#! /bin/bash
# run Carla in headless mode
carla -n /data/Projects/PhoneListen/Carla/PhoneListen\ 04.carxp &
# disconnect unneded routing
jack_disconnect "PulseAudio JACK Sink":"front-left" system:playback_1
jack_disconnect "PulseAudio JACK Sink":"front-right" system:playback_2
jack_disconnect "alsa2jack":"capture_1" system:playback_1
jack_disconnect "alsa2jack":"capture_2" system:playback_2
Yay!