Probing the Reionization History Using the Spectra of High-Redshift Sources