Former parliamentary speaker Peter Slipper has lost a bid to have fraud charges against him dropped on mental health grounds.

A Canberra court heard on Wednesday that allegations of dishonesty and sexual harassment had left Slipper feeling he had no way out and had driven him to try to take his own life.

Peter Slipper arrives at the ACT Magistrates Court. Credit:Jay Cronan

Yet his application for the charges to be dismissed because of mental illness was thrown out of the ACT Magistrate's Court.

It was Slipper's second failed attempt to keep charges he fraudulently used cab vouchers on a Canberra wine-tasting tour out of court.