posted 21 years ago
Both I and Dirk understand exactly what you said.
Kathy showed you how to play one sound file. All you need to do is invoke that code appropriately.
Version 1:
You need to create eleven sound files: ten containing your voice saying each digit, and one saying "point". Then, when you need to say "nine point four", use Kathy's code to play the file for "nine", the file for "point", and the file for "four".
Version 2:
The last version wouldn't say "ten point four", it would say "one zero point four." So now you need to make sound files for "ten", "eleven", "twelve"... "nineteen", "twenty", "thirty", "fourty", etc. Then, again, just use Kathy's code to play the right sound files in order to compose the numbers.
Version 3:
Add even more sound files: "hundred", "thousand", "million", etc.