A dynamo is a generator that is designed to produce DC. This is usually done by the use of a commutator. A commutator operates like a switch alternating the connection to the armature so that the output voltage is always traveling in the same direction . Sometimes an Alternator will use diodes to rectify its output to DC. This is done in a car alternator.
An alternator is a generator that is designed to produce AC, instead of a commutator it will use slip rings.
If your unit has diodes you can remove them and you will have AC
If the generator uses a commutator you really have no practical option other than replacing the entire unit with an alternator.
Why do you need to generate AC?