You sir are a gem!!! i had the same issue, after flashing CM12 and a few other ROMS, i thought a drop on my phone caused the internal speaker to fail.
Downloaded the app, Changed the "Phone Call Audio....." to Earpiece and i can hear once again :)
Thanks :)