In pet owning days I have given commands and the animals have, in the main, obeyed. Much depends on training.
Talking (as in holding a conversation) to a cat or a dog is much the same as talking to yourself ........... but without the answers you hope for.