I think it's " to talk" the right answer.
Surely 'talking' and 'to talk' are both acceptable
"Talking" and "to talk" are both good to use.
I'd say 'talking' in this case. There is a difference between 'tried talking' (sounds as if you talked, but couldn't come to an agreement) and 'tried to talk' (you wanted to talk to her, but she avoided/blanked you).