This guide is for Minecraft for mobile devices, Windows 10, Switch, and Xbox consoles.
To be able to communicate with players other than your friends, you must change the privacy settings on your account.
If you are under the age of legal majority in your region you may have a child account, which means multiplayer and communication settings are blocked by default. A parent or guardian must log in to change the settings on the child account.
To do so, follow the instructions at manage Xbox online safety and privacy settings to navigate and change your privacy settings. You can set the Others can communicate with voice, text, or invites option to your preferred setting for yourself or your child from Xbox.com.
Make sure you select the Everyone option to be able to communicate with others.
If you still need assistance, you can contact Minecraft Support.