In one court document, filed on Tuesday as they sought to prevent the disclosure of the names of those recorded, prosecutors indicated that at least six of seven elected officials recorded by Ms. Huntley were the subjects of criminal investigations. But in another document, filed last week, prosecutors said that Ms. Huntley had not been credible in talking about her own conduct, and as a result they had decided not to enter into a cooperation agreement with her.

Image State Senator Velmanette Montgomery of Brooklyn. Credit... Michael Nagle for The New York Times

But the release of the names was a stunning turn of events in a capital already reeling from a series of arrests of officials in recent weeks, following years of scandal that brought down multiple lawmakers, a governor and a comptroller. According to a running tally maintained by the New York Public Interest Research Group, 32 current or former state officeholders have been convicted, censured or otherwise accused of wrongdoing over the past seven years.

There are multiple reminders of corruption in Albany — there are four legislators serving in office while facing criminal charges, and an unknown number of others are under investigation. Anticipating further unpleasantness on Wednesday, many lawmakers left town just ahead of the 2 p.m. unsealing of the document that named those who had been recorded.

“This is an extremely trying time in Albany,” Mike Murphy, a spokesman for the Senate Democrats, said as his conference tried to digest the news that one of its members had recorded others. “If any charges are brought, the conference will take appropriate action.”

Ms. Huntley is one of two former lawmakers who have recently acknowledged recording conversations for federal law enforcement — Assemblyman Nelson L. Castro, a Bronx Democrat, was making recordings for the United States attorney in Manhattan before Ms. Huntley did the same for the United States attorney in Brooklyn.

Ms. Huntley made her recordings from June to August last year after she was approached by the Federal Bureau of Investigation, which confronted her with evidence of her involvement in criminal schemes. In September, she lost a bid for re-election in a Democratic primary, and in January, she pleaded guilty to embezzling more than $87,000 in taxpayer money from a nonprofit organization. She is scheduled to be sentenced on Thursday.