No, the Bible doesn’t say one shouldn’t speak to homosexuals.
The Bible does say in Luke 6:31:
“And as you wish that others would do to you, do so to them.”
Luke 6:31 ESV
https://www.bible.com/bible/59/luk.6.31.esv
And the Scripture tells us to love one another. ( see John 13:34)