Magnetic excitations in the isostructural spin-dimer systems Sr3Cr2O8 and Ba3Cr2O8 are probed by means of high-field electron spin resonance at sub-terahertz frequencies. Three types of magnetic modes were observed. One mode is gapless and corresponds to transitions within excited states, while two other sets of modes are gapped and correspond to transitions from the ground to the first excited states. The selection rules of the gapped modes are analyzed in terms of a dynamical Dzyaloshinskii-Moriya interaction, suggesting the presence of phonon-assisted effects in the low-temperature spin dynamics of Sr3Cr2O8 and Ba3Cr2O8