Apple already has a device that allows this:
iPhone Lightning Dock - Black - Apple
If you want something more portable Belkin offers this:
Belkin Lightning Audio + Charge Rockstar - Apple
Alternatively you can use Bluetooth headphones and charge at the same time normally.