As long as you're not talking too loudly, it's fine to speak in the onsen. It’s quite common for people to go there with their friends or family members to talk in a relaxed setting. However, rowdiness is not acceptable. So please be mindful of everyone's right to enjoy the facilities.