Text this: Onboard Spectral Analysis for Low-Complexity IoT Devices