The wind is crying. What kind of figurative language is this? What is the author trying to say?

This is an example of personification, as the wind is given human-like qualities by "crying." The author is trying to convey that the wind is making a mournful or sorrowful sound, as if it is expressing emotions like a person would.