Optical modulation of coherent phonon emission in optomechanical cavities