Hey is an informal interjection and a nominal form used to attract attention or greet someone. In speech, it functions as a quick, emphatic opener or as a call to engage, often with rising intonation when asking, or flat/stressed emphasis when greeting. Although short, its pronunciation is salient in signaling friendliness, urgency, or sarcasm depending on tone and context.
Full pronunciation guide