Using the Gen2 button and speaker

Does anyone have any information about how we can write apps that utilize the new Gen2 button and speaker?

No.
It sucks, but the official docs have yet to be updated with information on how to use those.