To actually answer your question:
Super glue would be a decent option. You should only need one drop to secure the tray.
If you ever need to open the tray again, wet the area with isopropyl alcohol for a few minutes, and it should pop right open without damage. If you get too much resistance, add more alcohol and wait a little longer.
There is also a 2-part epoxy with similar performance called “Doubkr Bubble” that also dissolves with alcohol, but it’s definitely overkill for a SIM tray.
Is it for recorded audio or live audio? For recorded, Audacity can remove basic noise profiles. For proper, advanced audio editing, you’ll need to use something like the Edison plugin in FL Studio; or a similar process in a DAW of your choice.
The AI options just take all of the work out and make the process easier at the cost of quality and privacy.
With the phone off, the isopropyl should be safe. It’ll dry quick, too.