Input from mic and listening from speaker

Will the solution will be feasible to use with 5V instead of 9V?

You must use the pull up resistors to 3V3 because this is an Arduino Due. The input must be turned down, or the gain of the amplifier reduced, so that it does not exceed 3V3 PTP voltage on the output of the amplifier.