Direct detection with transit spectroscopy