Female to male can change through hormone treatment.
Male to female won't physically change (without surgery) but people will often take on an affectation and feminise their voice themselves. Starts out as a deliberate conscious effort but if you do it enough over a long period of time it just becomes how you talk.