It looks to be one of those piezo speakers, which as far as I know don’t draw a lot of current. I’d try it with the two AAA.
If you try something else don’t go above 3V or your Micro Bit will be toast.
If you can find a dual AA with the correct JST plug polarity it should work and get you longer run time on battery. More current too I would think.