Could things like sound recording and photography have been invented earlier in history?

Dec 2015
370
NYC
Probably the two greatest modern inventions: the ability to capture sound and image. The former captures sound waves, "etching" them onto a cylinder and later a disk and later on being able to play it back. The latter captures light, captures the image as is and etches it onto a light sensitive paper. Both of these things however were invented only 200-300 years ago.

Could they have been invented much earlier, say the medieval period, where some civilizations had some 'advanced' knowledge of alchemy (examples include alchemy in Islamic world and gunpowder in China)? And at least for photography, the concept of camera obscura already existed, all that was needed was knowledge of certain chemicals that react to light. Though for sound recording, it's much trickier.