Sound and noisy light: Optical control of phonons in photoswitchable structures