Text this: Towards on-chip spectroscopy based on a single microresonator