أَيْ صَدِيقِي، اسْمَعْ
O my friend, listen.
Ay also addresses someone originally viewed as near. In this usage it is a vocative particle, not the interrogative noun ayy meaning “which.”
أَيُّ كِتَابٍ قَرَأْتَ؟
Which book did you read?
Here ayyu is an interrogative noun seeking identification of a book. Phonetic similarity does not make the two expressions identical in grammar or rhetorical function.