https://www.biblegateway.com/passage/?search=Matthew+6%3A6&version=NIV
Matthew 6:6
New International Version
6 But when you pray, go into your room, close the door and pray to your Father, who is unseen. Then your Father, who sees what is done in secret, will reward you.
anyone who prays in public is a scumbag piece of shit liar
and as per philippians 4:6-7 you must speak your prayer out loud
so, that's two consistent points in favor of the idea you need to pray in private, out loud
if your social situation denies you this privacy, you need to change your situation