The Holy Spirit is the Spirit of Truth and He, not man, Authored the Bible. Did He use man? Of course. God does nothing on earth without the cooperation of His creation, mankind.
All scripture is given by inspiration of God, and is profitable for doctrine, for reproof, for correction, for instruction in righteousness: 2 Timothy 3:16 KJV
And so it is with all communication from God.
For the prophecy came not in old time by the will of man: but holy men of God spake as they were moved by the Holy Ghost. 2 Peter 1:21 KJV