radikal.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
radikal.social was created by a group of activists to offer federated social media for the radical left in and around Denmark.

Administered by:

Server stats:

163
active users

how do I go about making a script that starts by audio input? ie. microphone triggering.

pelle ✅

@NOISEBOB run when sound in mic

Here is a function "getvol" which uses to listen for 0.1 second and then tells you peak volume, between 0 and 1:

function getvol {
rec -p trim 0 .1 stat 2>&1 >/dev/null | grep -Po "(?<=Maximum amplitude:).*" | grep -Po "\S+"
}

You can loop the function and do something if the volume is high enough.