How did you do that? If you’re using diddledan’s Snapcraft package, contact diddledan at the email address provided on this page: Install Audacity on Linux | Snap Store
Let us know how you get on. Although we’re not able to offer support for Snapcraft, you may be able to provide information that could help other Audacity users.
Huh. I just tried it again as a normal user, and it launched without error. I wonder if launching it as root got some permissions written correctly. No idea.
I don’t think the problem was directly related to Audacity. The error message that you received appears to indicate that your permissions were confined to a “snap confinement level” (https://docs.snapcraft.io/snap-confinement).
Whatever you did appears to have got you out of that confinement so that you were then able to run Audacity.