erc-put-text-property

erc-put-text-property is a compiled Lisp function in `erc.el'.

(erc-put-text-property START END PROPERTY VALUE &optional OBJECT)

Set text-property for an object (usually a string).
START and END define the characters covered.
PROPERTY is the text-property set, usually the symbol `face'.
VALUE is the value for the text-property, usually a face symbol such as
the face `bold' or `erc-pal-face'.
OBJECT is a string which will be modified and returned.
OBJECT is modified without being copied first.

You can redefine or `defadvice' this function in order to add
EmacsSpeak support.