I think that might not be possible with AirPods. One of it's features is that it stops playing music when you take out one of the ears.
"Optical sensors and motion accelerometers work with the W1 chip to automatically control the audio and engage the microphone, giving you the ability to use one or both AirPods."