That is indeed the trick, but who said anything about computers? Mechanical sound reproduction, even specifically using electricity, predates computers. I see no reason it couldn't post-date them in this application, as well. You would want to build the system out of simple, indestructible components, something closer in complexity to an electric doorbell than a computer.