There were two old fashioned ways throughout actual history
Southeast Asian people hallucinating their dead parents barking orders at them and imagining what their parents would say if they are still alive which was called ancestor worship
People pretending to be able to communicate with the dead and then telling other people what the dead said often in order to make money