When 'Y' is employed like a vowel and is preceded by A different vowel, it generally acts like a consonant and is particularly pronounced such as 'y' in "Of course." such as: "payer"/pay-yay/ (to pay).
Okay, this https://socialmediainuk.com/story18827504/examine-this-report-on-alphabet-in-french