prosopopoeia

nounA figure of speech in which an absent or imaginary person is represented as speaking, or in which an inanimate object or abstract idea is given human qualities and speech.