If she is threatening you with legal consequences, ask her to go ahead because you have done this to secure evidence about her extra marital affairs or her adulterous life.
In fact if you want to use this evidence to support your claim or establish your allegations against her then you may adopt the procedures as laid down in section 65B of Indian Evidence act.
It is legal, although the evidence has been obtained involuntarily it can be still treated as a credible piece of evidence as per Section 65B of the Indian Evidence Act, 1872.
However, the person against whom such an evidence is being used has to be given an opportunity to contest the nature and contents of a recorded conversation.
The most common strategy adopted against such evidence is analysis of voice pattern.
The person against whom such evidence is given can ask for matching the voice pattern in the recorded call with his voice sample.
Furthermore, in order to match the 2 samples, the court can seek an opinion from the ‘Experts in this field’ by exercising the power under Section 45 in The Indian Evidence Act, 1872. Thereafter, based on the report submitted by the ‘experts’, the court can weigh the evidence presented before it, in order to arrive at a conclusion.
There have been instances and allegations of presenting doctored or tampered evidence of electronic nature during lawsuits in order to falsely implicate a person.
Hence, the evidence submitted under Section 65B of the Indian Evidence Act is subject to further examination under Section 45 of the Indian Evidence Act in order to establish the guilt ‘beyond reasonable doubt’.