While voice commands may be better than using the keyboard, they're still distracting and dangerous. It is best to avoid interacting with your phone at all while you drive.
Sending text messages while driving is extremely dangerous no matter the input method. Hands free is not safe nor safer.