Temperature dependence of phonon energy spectra with nuclear resonant scattering of synchrotron radiation