Josh Duhamel and Fergie Expecting a Boy

Josh Duhamel and his wife, singer Fergie, announced in February that they were expecting their first child together and now, the "Transformers" actor has revealed the baby's gender: He's a boy!

In a pre-taped segment of tomorrow's episode of "Live with Kelly and Michael," host Kelly Ripa gave Duhamel the choice of a pink or a blue onesie. After polling the audience on which to pick, Duhamel grabbed the blue one.

Josh Duhamel and Fergie expecting a baby!

"He actually did it! You actually picked one," co-host Michael Strahan said with a laugh.

Photos: Which star is due next?

Duhamel, 40, and Fergie, 38, were married in 2009. Their baby is due in August or September.

"I know my husband told everybody what I said, my quote when we found out, 'This blank just got real," she told "Good Morning America" earlier this year. "It's true when that moment occurs to you that, yeah, there's going to be a human being growing inside of you. It's reality. It's amazing. We're thrilled and so excited."

(Photo credit: David Russell/Disney-ABC)