The Bible writers didn't have a clue about biology (on the contrary, the Bible writers display so many scientific accuracies that I feel compelled to point out that a superior intelligence wrote the Bible).
Reading JOB from 38 to 41, God supposed answer to Job, consist of nothing but verses filled with ignorant superstitions, one after another.
Those verses and chapters simpler showed that IF God really exists, then he has no more intelligence than a primitive and superstitious man, like author who wrote the book.
And the talking serpent and talking donkey have no more credibilities than that shown in Harry Potter books or that in Francis movies or Mr Ed tv shows.
People have been writing stories of talking animals for centuries (ancient Egyptian, Sumerian, Babylonian, Canaanite-Ugaritic), and many of them predated writings of Jews, Christians and Muslims. And they are all called myths and fables, including those found in Genesis 3 and Numbers 22, or in Qur'an 27 in which King Solomon has the ability to speak and understand the languages of birds and ants.
In the Ugaritic Epic of Aqhat, the goddess Anat sent an eagle or hawk, named Yatpan, to rob the bow and arrows from Aqhat, son of Danel. Yatpan could talk, ended up killing Aqhat.
In the Old Babylonian Epic of Etana, we have nameless snake and eagle, with the abilities to talk to each other. They became companions, hunting and sharing food with others, until the eagle betrayed the snake, and (the eagle) ate her youngs. The snake took revenge upon the eagle, by crippling the bird's ability to fly, and left him in the pit to die. Etana, Sumerian King of Kish, was searching for a cure for he and his wife inability to have children. The eagle and King became friends when Etana nursed the eagle back to health. Etana had a vision that he flew on eagle's back to heavens, and meet the goddess who possessed the herb of birthing. The eagle had to fly twice to heaven, because the first time at flight, Etana got scared. The second flight must have been successful, but the tablet was fragmented, so meeting the goddess is lost. But assuming that Etana and the eagle did reach the goddess and fetch the plant of birthing as Etana's vision indicated came true for Etana.
The tale of Etana must be a lot older, because there is an artwork that depicts a hero on the back of eagle. And the name Etana does appear in Sumerian King List.
There are many Egyptian myths of animals with abilities to talk in language of humans.
The abilities of human being able to communicate in the languages of animals, or animals having the abilities to speak human language were commonplace in ancient and medieval myths and fables, and they are based on superstitions and wild imaginations of the authors. And the authors of Genesis, Numbers and Qur'an are no different in spinning tall tales.
In real life, parrots and cockatoo birds have the abilities to mimic the words spoken by humans, but they do not have the abilities to understand what they are mimicking. Donkeys, eagles and snakes definitely cannot even do what parrots and cockatoos can do (mimicking), let alone actually talk to humans.
The problems is that some worshippers still believe in such nonsenses, just showed that therir grasp in realities are on shaky ground.