Is NLP only for text-based data?

Primarily yes, but it integrates with speech processing for voice-based applications.