It depends on the motor.
If it is a permanent magnet motor, then it will need to be run at half rated speed and have a diode in series to stop reverse current.
If it has a wound field, then the field current can be varied to compensate fror speed. A car dynamo or car alternator do this...