in general, when your auxiliary verb is avoir (ont etc), the past participle does not agree with the feminine subject (so elles ont parlées would be wrong).
Therefore in you example:
ils ont parlés and elles ont parlés are both correct
However when the auxiliary verb is être (sont etc), the...