Prosopopeia is the rhetorical and poetic device of giving speech, voice, or a human presence to something that cannot literally speak, such as an object, an abstraction, a dead person, or the absent. It is closely related to personification, but prosopopeia especially emphasizes speaking or acting in a human way rather than simply being described as human.
The term is often used interchangeably with prosopopoeia, the more common spelling in English.
Example
The old clock said, Tick softly-
I count the hours you waste.
Then the moon leaned in and whispered,
Leave your sorrow here.