This literary term is exemplified by Walt Whitman's representation of America singing as if it had a voice.
What is personification?