Recording fom MiniDisc using optical out is pitch shifted

Try changing the Audacity project rate to 48kHz before you record

The samples on the minidisc may be 44.1kHz, but your USB converter could be 48kHz