What is it called when a poet directly addresses a person or thing that cannot respond? It’s either assonance or apostrophe

What is it called when a poet directly addresses a person or thing that cannot respond Its either assonance or apostrophe class=