The microcontroller + AD / DA isn't that expensive (
MCU AVR 128K FLASH 1.6V 44-QFN - ATXMEGA128A4-MU).
$7 + some basic PCB + voltage regulator, maybe one op-amp to amplify the DA signal... I would guess ~$20. But I don't know too much about PCB pricing.