Capture audio from users microphone

Hi there, I was wondering what the best way would be to capture audio from a users microphone in anvil or if its even possible? I would then like to use the file within anvil after recording so would need to capture it as a file.

Thanks

It looks like there’s some HTML5 support for capturing images and audio. They use the standard file input tag, so that would get uploaded to Anvil the same as any other file.

https://w3c.github.io/html-media-capture/