It's not really hard to reverse engineer AirPods. Just watch the bluetooth communication between a mac and the AirPods, turn specific features on/off, see how it reacts, then replicate exactly. I wanted to do it myself but saw something like this already exists (librepods, previously called "Airpods like normal (aln)").