The other day on Reddit [1] there was a video of farm animals reacting to their names, but I think it's just responding to the "pet voice", or rather to their food provider vocalizing in their direction.
I think this is true for some of the pets (e.g. many birds are quite dumb), but pigs are one of the most intelligent mammals, and cows are not dumb either.