Request audio access with popup in chrome extension

Considering chrome extensions can’t request audio permissions in the manifest.json, I have read that the best way to get permission is to open a pop up asking the user for audio access.

Despite extensive reading I haven’t figured out a way to do this? Is there somewhere documenting requesting permission in this way?