LOS ANGELES -- Two people charged with trying to extort millions of dollars from Stevie Wonder pleaded no contest on Monday and were released after being sentenced to time-served in jail.

Alpha Lorenzo Walker and Tamara Diaz were sentenced to serve 292 days in jail and three years of probation for attempting to sell a video that purportedly portrayed Wonder in a negative light. Jail credits made the pair eligible for release Monday.

The pair was arrested in May after the Grammy-winner's attorney arranged a sting and claimed Walker had sought up to $5 million for the video.

Walker's attorney, Ian Wallach, said the deal was reached after prosecutors encountered trouble proving the extortion case and that the charges were eligible to be reduced to misdemeanors and expunged later if the pair comply with the terms of their release.

A judge ordered the pair to stand trial in July after a preliminary hearing in which a police detective described the video as an 80-minute rant against Wonder. Portions of it were filmed in the former home of the singer's late mother, which is now dilapidated, and it also shows Wonder's son, whom the musician is protective of.

Wallach had maintained his client was innocent and that he had a constitutional right to make and market the video. Diaz is Walker's girlfriend and was present during a police sting that involved Wonder's attorney and led to the pair's arrest.

The Los Angeles District Attorney's Office said both were ordered to stay away from Wonder and his associates while on probation.

Also on HuffPost:

Loading Slideshow...
  • Rihanna

    <a href="http://www.huffingtonpost.com/2012/04/17/rihanna-strips-down-singer-bares-all-skinny-dipping_n_1431327.html" target="_hplink">Rihanna released more than 150 snapshots</a> from her own personal collection, including a few of her skinny dipping.

  • Kim Kardashian

    Kim Kardashian tweeted a sneak peek at the photo shoot she was doing on April 12.

  • Alicia Silverstone

    Alicia Silverstone chews her son's food before spitting it directly into his mouth. #gross

  • Courtney Stodden

    This is actually a good day. We've never seen Courtney in pants!

  • Meghan McCain

    Meghan tweeted: "my 'spontaneous' night in is my Andy Warhol biography and takeout....I'm getting old"

  • Dean McDermott

    Dean McDermott accidentally <a href="http://twitter.com/#!/deanracer" target="_hplink">tweeted a photo of his son</a>, while wife Tori Spelling was topless in the background.

  • Kanye West

    Case in point.

  • Courtney Stodden

    We've never been so offended by a day of the week.

  • Miley Cyrus

    Miley Cyrus is far from naked here, but she managed to cause an Internet brouhaha late last month when her director, Adam Shankman, tweeted these snaps.

  • Katy Perry

    Katy Perry posted a naked pic from the bathtub. Recovering from the flu, she tweeted an explanation of the pizza: "Why is it that after not eating for three days all I can think of is food...food is smiling at me...luring me with sexual seduction."

  • Lenny Kravitz

    The bathtime fun continues. That's Lenny Kravitz and his bare rear end.

  • Lindsay Lohan

    Lindsay Lohan tweeted this topless pic. "I'm THAT bored," she wrote.

  • Demi Moore

    Ashton Kutcher snapped this picture of his wife Demi Moore and posted it on his Twitter feed when the pair were in the Caribbean for Bruce Willis' wedding.

  • Lance Armstrong

    Lance tweeted this back in March, showing off his taped-up scar after he had surgery to fix his broken collarbone