Deep Neural Network for Phonon-Assisted Optical Spectra in Semiconductors