An obituary is a written account of the deceased's life, while a eulogy is a speech given at a funeral in honor of the person who has died. A eulogy will be written before it's spoken, but it should be written as a speech, with more emphasis on how it sounds than on how it appears on a page.