We cannot just isolated one verse in Paul’s epistle without looking at other verses.
Women were allowed to pray or prophecy ( see 1 Corinthians 11:5 ) within the cultural settings they were in.
So, 1 Corinthians 14:3435 cannot be an absolute prohibition against all types of speaking by all women at all times simply because an earlier passage ALLOWS women to do so.
What that passage doesn't say is if such prayer or prophecy was in a church service. Using one verse to nullify another is Satan's job.