added logic: network connected judge
added a speak code