Carmen Segarra, the Wall Street whistleblower who secretly recorded 46 hours of private conversations with her fellow regulators — casting a light on the sometimes too cozy relationship between the New York Fed and the banks it oversees — is considering writing a book, The Post has learned.

Segarra, a lawyer, left her job at Barclays in New York earlier this month after Federal Reserve Chair Janet Yellen, in a March 3 speech, appeared to refer to Segarra’s rocky relationship with her then-Fed colleagues.

“It is important that anyone serving the Fed feel safe speaking up when they have concerns,“ Yellen said in her speech in New York City before the Citizens Budget Commission.

“It’s been an ongoing drain [for Segarra],” a person familiar with Segarra told The Post, talking about the publicity following her going public with her New York Fed issues.

Segarra does not yet have a book deal or even an agent, according to one person familiar with her plans.

Segarra’s 2011-2012 tapes were made public in September when WBEZ’s “This American Life” aired a report on regulators at the Federal Reserve Bank of New York shrinking before bankers at Goldman Sachs over a “legal, but shady” deal.

The report leaned heavily on Segarra’s tapes.

“The Ray Rice video for the financial sector has arrived,” Michael Lewis, best-selling author of “Flash Boys: A Wall Street Revolt,” said after listening to the tapes.

The Segarra tapes’ revelations prompted major changes.

The New York Fed has seen its influence diminished, and a Washington, DC, panel led by Fed governor Daniel Tarullo now more closely regulates large banks. Sen. Elizabeth Warren (D-Mass.) summoned New York Fed chief William Dudley to Capitol Hill for a grilling, suggesting that his job was in danger.

Dudley, who worked for Goldman for 21 years and had headed the regulator since 2009, went on the defensive after the tapes were released — even though he denied that the New York Fed was a meek bank overseer.

“I don’t think anyone should question our motives or what we’re trying to accomplish,” Dudley said after the Segarra tapes were made public.

Segarra left the New York Fed in 2012 and has been locked in a wrongful-termination suit with her former employer, claiming that she was fired because she refused to change a report that Goldman lacked a firm-wide conflict-of-interest policy — a position that the bank has denied.

Jamie Diaferia, a spokesman for Segarra, declined to comment. Spokespeople for Barclays weren’t immediately available for comment.