"paul Z" <pa****@yahoo.com> wrote:
I was going through the programs of winners if ioccc.I found one excellent
program which would give out the current time from the speakers when the
output of the program is given to /dev/audio.It was very impressive.Can
anybody please tell me how can it be done , I mean how does one know that
giving so and so ascii's will produce so and so sound..
I'm sorry, but this topic does not belong to this newsgroup, because the
implementation has nothing to do with C, neither has /dev/audio. Here
are some lines anyway:
It is not possible, in practise, to just write some values to
/dev/audio and get something sensible out (at least human speech).
If the sampling rate of the audio data is 8000 it means
that 8000 bytes will produce one second of sound. The trick is that
one records all numbers and other elements (pronounced by a human
person)
needed to produce time and then concatenates then in the appropriate order.
--
Tapio