At least with Kindle books, you can run them through DeDRM and back up the DRM-free files. With Audible audiobooks, I’m not aware of a method other than to play them back and record the audio in real time.
It’s a shame about the notes on Kindle, I don’t think those are something you can back up / transfer. Really makes me wish that the open source alternatives had the same level of polish and feature set.