Prosopopoeia is understood as the act in which gravity or solemnity are capable of affecting the way in which an individual is able to express himself, extending, on some occasions, to the way in which he usually acts. In literature, it is the rhetorical figure used when a writer tries to attribute to elements or events that are normally inanimate, characteristics of the morphological composition of the human being, or that are part of the behavior of the same. In a broader sense, prosopopoeia can even be denoted in stories where irrational beings, by decision of the author, act, think and feel like a rational being; the same occurs when dead people or animals have the ability to communicate.
The general objective of prosopopoeia is to make it appear that non-human objects and beings think as if they belonged to the human race. These can be both small subtle phrases that enrich the text, up to long writings, in which the human situations in which an inanimate being is immersed are narrated. In the same way, what you describe can be turned into a person; in this way, it is much easier for the reader to understand the sensations that the object generates for the author. That is why it is considered as one of the rhetorical figures of fiction, since it refers to situations that simply cannot be recreated in physical reality. A clear example of prosopopoeia is the poem by Juan Ramón Jiménez"Wine, first, pure", in which poetry is given human traits, and this is not revealed until the writing is finished.