Like the infinite monkeys typing Shakespeare, but with audio instead.
If there was a program that created a series of sounds at random intervals, pitches, amplitudes, etc., how long would it take to produce an output that sounds like music, some sort of recognisable recording (e.g. a bell ring, a dog barking), or perhaps even a human voice?


It’s kinda impossible to answer, since there are infinite possible ways to randomly generate noise, for instance
(most random audio processes do not have a name). And if any audio is possible, like in these processes, you would never get an exact real song, but getting close (same as a real song but a little out of tune) would happen eventually.
I think a better analogy to infinite monkeys typing Shakespeare is randomly hitting the keys on a piano, though still, you would need to specify how the timing of the notes is randomized. If the lengths of the notes and the pauses are uniform and limited to standard lengths, eventually you would get, say Mozart’s Symphony no 5.
It’s also impossible to answer because pareidolia will cause different people to hear what they think is music or speech in random noise at different thresholds, dependent on the person.