Your sentence had three errors:
Corrected: “To the delight of music lovers worldwide, Thomas Edison invented the phonograph in 1877.”