Base64 to Audio and Audio to Base 64

Is there an extension, or a way I can convert the audio from microphone, or from a file, to Base64?
I would like to transfer it (the string) via Firebase Database.
I’ve already tried it with images, (converting images to Base64, there’s already an extension for that), and it works fine. I just send the encoded string to firebase and then I can decode it in the app and show the image, but I didn’t found anything to do the same with audios and the microphone.

Thanks in Advance,
Resende :smile: