prosopopoeia

figure of speech in which a thing is personified or an imagined or absent person speaks