Arthur Schopenhauer said this quote

For an author to write as he speaks is just as reprehensible as the opposite fault, to speak as he writes; for this gives a pedantic effect to what he says, and at the same time makes him hardly intelligible