When the prophets spoke, it was as though God himself was speaking because he told them what to say. Alternate translation: "God foretold by telling all of the prophets what to speak"
Here the word "mouth" refers to the words that the prophets spoke and wrote down. Alternate translation: "the words of all the prophets" (See: [[rc://en/ta/man/translate/figs-metonymy]])