Singing ventriloquist Darci Lynne Farmer was announced the winner of America's Got Talent season 12 Wednesday night (Sept. 20).

After more than 52 million votes were cast in the contest, the 12-year-old became the second ventriloquist to win the NBC reality show's $1 million grand prize.

The Oklahoma native and her puppet, Petunia, were joined on the live finale by season 2 AGT winner Terry Fator -- a ventriloquist Farmer called her "idol" -- for a duet of "Anything You Can Do (I Can Do Better)." Watch here:

<iframe width="560" height="315" src="https://www.youtube.com/embed/7KS2oJPzeZk" frameborder="0" allowfullscreen></iframe>

Fator and his puppet, Winston the Impersonating Turtle, have a $100 million five-year contract at The Mirage Hotel in Las Vegas.

Farmer burst into tears when host Tyra Banks announced her as the winner, joined onstage by runner-up Angelica Hale, a 10-year-old singer with a history of major health challenges.

<blockquote class="twitter-tweet" data-lang="en"><p lang="en" dir="ltr">That moment when <a href="https://twitter.com/ItsDarciLynne">@ItsDarciLynne</a>'s dreams became a reality. <a href="https://twitter.com/hashtag/DarciLynneWins?src=hash">#DarciLynneWins</a> <a href="https://t.co/5WOHwifl6O">pic.twitter.com/5WOHwifl6O</a></p>— America's Got Talent (@AGT) <a href="https://twitter.com/AGT/status/910699350388391936">September 21, 2017</a></blockquote>

<script async src="//platform.twitter.com/widgets.js" charset="utf-8"></script>

On Tuesday's (Sept. 19) first night of live finals, Farmer performed The Beatles' "With a Little Help from My Friends," impressing judge Simon Cowell, who predicted: "I think you're gonna win." Watch here:

<iframe width="560" height="315" src="https://www.youtube.com/embed/8ropWor8aAM" frameborder="0" allowfullscreen></iframe>

Rounding out the top 10: singers Kechi Okwuchi, Evie Clair, Chase Goehring and Mandy Harvey; comedian Preacher Lawson; dog trainer Sara & Hero; and dance troupes Light Balance and Diavolo.

All of the finalists will perform Nov. 3-4 for America's Got Talent Live at Planet Hollywood in Las Vegas, headlined by Farmer.

<blockquote class="twitter-tweet" data-lang="en"><p lang="en" dir="ltr">You did it, <a href="https://twitter.com/ItsDarciLynne">@itsdarcilynne</a>! It's been amazing watching you this season on <a href="https://twitter.com/AGT">@agt</a> <a href="https://twitter.com/hashtag/AGTFinale?src=hash">#AGTFinale</a> <a href="https://t.co/1Oi6FdD7Lh">pic.twitter.com/1Oi6FdD7Lh</a></p>— Heidi Klum (@heidiklum) <a href="https://twitter.com/heidiklum/status/910716501740490752">September 21, 2017</a></blockquote>

<script async src="//platform.twitter.com/widgets.js" charset="utf-8"></script>