One who began a berachah in error, and then remembered that he had already blessed, should complete the words as a verse, or say Baruch Shem kevod malchuto le’olam va’ed. As Maran the Shulchan Aruch wrote, a berachah recited only in thought does not fulfill the obligation of a first berachah, and he should bless again with his lips, after voiding the thought. From the booklet Seudah baHalachah of Rabbi David Shalom Naki, shlit"a.