Simulate microphone input

I’m working on a project based on the clap example for the matrix voice. I’m tired of actually clapping, and I’d like to be able to test on the hardware remotely. What’s the easiest way to simulate microphone input? I’m currently looking at using a loopback device in alsa with some recordings I made on the voice.

A loopback device seems to work great for my application.