Teensy hobbyist 1101010 has created a charming project named “Dial-a-Memory.” The system uses a Teensy 3.2 plus Audio Adaptor Board to play various audio files depending on the number dialed on the attached telephone.

Examples include files from archive.org, Morse code “fortune cookies”, spoken versions of numbers like e and pi, and even a Choose Your Own Adventure-style game. After initial experiments with the Teensy wired directly into the phone, 1101010 switched to a SLIC (subscriber line interface) module that allows any phone to be plugged into the system.

More information and source code can be found on GitHub, with the latest hardware in development on EasyEDA.
