Dynamic IVR Reply

I have a project that need to have a voice reply by reading a text (eg, read a numeric value of an account number) obtained from a database. Can asterisk perform this function? I am planning for user to request for their own account number and the number is read to them using voice, with Asterisk IVR. Does Asterisk has the pre-recorded voice on numeric (1,2,3…0) that we can use to form the voice reply?

Sure, try show application SayDigits at your friendly Asterisk CLI.

voip-info.org/wiki-Asterisk+cmd+SayDigits