Bill gates is working on that..
CRISPR is capable of silencing genes and inserting genes. It may be possible, in time, to silence the male gene and add female.
Here’s an example with pigs: https://www.synthego.com/blog/crispr-pigs-xenotransplantation