“with a wise heart.” The Hebrew is literally, “wise of heart.”
“lips” This is a metonymy for what is spoken by the lips.
[See word study on “metonymy.”]