This is the basic idea;
-
Use a standard D2A algorithm (check out the winmodem source in the linux kernel for instance) to record a sequence of timestamps onto a cassette tape, Compact Disc or even Vinyl record.
-
Connect the output of your choosen playback device to audio input of a computer (Raspberry PI).
-
Insert your media (casette) into your playback device and start playing.