This script will create a virtual microphone for PulseAudio to use and set it as the default device, playing an mp3 file in a loop
This script I use for testing SD cards / USB sticks for fakes or bad blocks
This script allows to list and set volumes for apps