Dielectric effects on the spectra of condensed phases