Which inventor is credited with developing the phonograph, allowing sound to be recorded and played for the first time?