the way i saw is that Mystique had been hanging around the mansion for a while before Charles discovered her, so she'd heard his mother speak before.
Mystique can change all of her anatomy to match someone else's. When her vocal chords change, her voice changes. If she becomes a man, she is provided with the same organs all males have. That's that, the end.