prosopopoeia

A rhetorical device whereby the perspective of another person or thing is given voice, as in the statement ‘The evidence speaks for itself’, or ‘If X was here, they would no doubt have something to say’, and so on.