The-Dream has claimed that his ex-girlfriend has falsely accused him of attacking her so that she can avoid deportation to Canada.

The R&B and pop producer made the claims after he was charged on Wednesday with alleged assault, strangulation, harassment and reckless endangerment against his pregnant former lover Lydia Nam, TMZ reports.

The star, 36, who was allowed to leave the Manhattan Criminal Court after paying $20,000 bail, is said to have told friends that Ms Nam, who was heavily pregnant at the time of the alleged attack in April 2012, falsely accused him.

Dispute: Music producer The-Dream previously claimed that assault allegations by his former partner Lydia Nam 'are lies to avoid being deported from the US'

He is said to have claimed that his former lover was about to be thrown out of the USA and returned to Canada, and she is lying to take advantage of a visa concession that allows crime victims to remain in the country if they are needed to testify in a prosecution.

On leaving court, the producer who has worked with A-list singers sich as Britney Spears and Rihanna, said: I have nothing to say. It'll all come out. There are worse things in the world going on.'

Sources for Nam allegedly told the website that Dream has a history of domestically abusing her. TMZ reports that while she waited seven months until after the alleged incident to report it, the reason was because she was terrified of him.

A lawyer for the star told the judge that his client was innocent at that the accusations, which were reported in November 2013, were the result of tensions between the former couple on civil litigation and child support issues.

A criminal complaint alleges that Dream 'punched and kicked' his former girlfriend at New York's Plaza Hotel in April 2012 and threatened to kill her 'like O.J. Simpson killed Nicole Brown'.

The producer is also alleged to have 'dragged Lydia by her hair, twisted her necklace around her neck, kicked and punched her in the head, grabbed her by the neck, pinned her to the wall and choked her.'

Arrested: Music producer The-Dream was reportedly taken into custody in connection to alleged assault of then-girlfriend Lydia Nam back in April 2013, when she was pregnant with their son

His rep released a statement to
MailOnline shortly after his arrest: 'Dream voluntarily surrendered to the Midtown North Precinct
this morning in order to responsibly address the false allegations
filed against him by Lydia Nam.

'He is innocent of the charges filed
against him today, and we are confident that when this case is concluded
and all the evidence has been reviewed, it will be clear that he is
innocent.'

In addition to the two felonies, which were for assault and strangulation, he was also booked for three misdemeanors, for assault, reckless endangerment and child endangerment.

Former love: The-Dream was previously married to singer Christina Milian

The incident is alleged to have happened at the Plaza Hotel in New York City - around three months before Lydia gave birth.

However,
following the alleged attack, Lydia went until November before filing a
police report, with no indication as to if she sought medical attention
following the reported assault.

But a source close to the the 36-year-old musician has insisted to TMZ.com
that the claims are untrue, adding that Dream believes the Canadian Nam
is a 'vengeful woman who's plotting to use this alleged crime as a way
to extend her visa in the US.'

The alleged assault isn't the first domestic violence case that Dream has been accused of being involved in.

He helped make her: The-Dream created Umbrella, which was a breakout hit for Rihanna, pictured at the Met Gala in May

TMZ.com also reported that Dream was arrested last June following an incident that also involved Nam, but she declined to press charges, meaning the case was rejected by the District Attorney.

MailOnline has contacted a representative for The-Dream for comment.

Dream is a famous American producer who is responsible for having co-written some of the world's most famous songs, including Beyoncé's Single Ladies and Rihanna's Umbrella.

Dream has three children with his first wife Nivea, as well as a daughter with second wife Christina Milian and a son with Nam.