It’s apparently true. Thomas Edison worked on inventing a “ghost machine” to contact the dead. It’s called his “failed invention.”
Or did he?
Apparently no machine was ever found after his death and it is generally believed he was joking because he did not believe in such things.
However, I did find this cool short film where they find this “missing machine.” Here it is. It’s science fiction fun.