Vex Speakers

A couple years ago a team programmed their voice into a vex speaker and had that choose their alliance, this won them excellence award at states. If anyone know how to do this that would be great. I’d preferably like to do this in easyC