yes. You basically need to rig it so that a conductor (e.g. a coil of wire, the more coils the better) experiences a changing field. You will then get an induced voltage in the coil which will produce an alternating current if the coil is attached to a circuit. Probably easiest to have the coil or coils fixed around the outside of the magnet and then rotate the magnet in between them (coils stay where they are, magnet spins round in the middle). If you speaker magnet is doughnut shaped, you might need to put it on a shaft so it looks like a lollipop and then find a way to make it turn, the faster the better. Hope this makes sense. You probably won't get life-changing amounts of power out of it, maybe enough to power a small (torch) bulb or similar. Depends on how many coils, how fast you turn the magnet, and so on.