MP3s can be charged with a transformer, but the transformer must meet the following requirements:
1. The output voltage and current should be 5V/1A.
2. The transformer has passed safety certifications.
Note:
If you are charging your MP3 with a transformer that does not meet the above requirements, harms may be done to your MP3 device.