Voice activated Baby swing

Could be power perhaps, or wiring disturbed when you attached the speak up board.

I'd try running the earlier code with the power & wiring as is. Might also be worth starting one of the motors in setup in the code you posted.