How do they get the dogs lips to move?
CGI.
You must be young. Any person over the age of thirteen can tell they use CGI to make the dog's lips move. Dogs just don't talk like we do to be able to move their lips like that to where CGI wouldn't be needed to bring out the effect.