@thomas m4a is something common. It's standard MPEG2/4 and i don't know any device that can't decode it, because the Decoder is free.
Alternative is: use Audio Recorder from F-Droid, there you can specify codec (to Ogg, Opus or others) among other options: