The Harry Potter lore describes Volubilis Potion to change one’s voice. Hogwarts Legacy does not have this potion or any such option. You can only customize your voice at the beginning when you are setting up your character.