I don't think that Pikachu really talked. More likely it was Ash hallucinating. Excessive stress is known to cause hallucinations
Either that’s mandalla effect or you were watching a fandub
OP meant the movie.
Hallucinating is a huge stretch
What do you think?