What is the film called about the woman who's writing a book but her character is actually a real person and is hearing her voice in his day-to-day life?

I think the name of the movie is called Stranger than Fiction