The difference is that dynamo's are long with a rather small diameter, an alternator is typically thick and smaller. It is not easy to build one inside...