Facebook is working on an artificial intelligence that it hopes could one day detect people’s emotions based on their tone of their voice, aiming...