23Sha-ger as a temporary solution.
A friend of mine has a Pixel 9a. The microphones were physically intact, but none of them worked, even after enabling the sensors and turning the microphone permission back on. After reinstalling GrapheneOS, everything started working normally again.
He told me it was done on purpose, but we never figured out how it worked. Unfortunately, the phone was set up by someone we don’t know.