When you’re in the middle of the battle, it’s too late to strap on a sword. We arm ourselves with truth in the peaceful times so we’re equipped in the war.
The Holy Spirit speaks, but he does so through the Word of God already stored in your heart. That’s how we know it’s from Him and not just our own ideas.