First a warning - it isn't very good because it was necessary to drop plosive sounds to make it fit in less than 1K. However, for the right phrase it works very well.
The sad thing is that including the extra sound would only have pushed the size up to 1189 characters - but this is an entry in the latest JS1K competition and being under 1K characters is essential.
The speech synthesizer is based on a tiny formant synthesizer implemented in C++ by Stepanov Andrey. A formant synthesizer works by applying different input waveforms to a set of filters which modify the sound produced. This aims to model the way that the vocal chords provide an input to the vocal cavities which act as an acoustic filter.
In this case the input waveforms are simply a sawtooth or noise and most of the work is done by setting the parameters of the filter.
The cut down synthesizer supports The following sounds/phonemes:
Registration has opened for a new contest in which devs are challenged to design perceptual computing apps for Intel's RealSense platform. All you have to do at this stage is submit an idea to be in w [ ... ]
Continuing its push to give all school students the opportunity to learn to code, Code.org is inviting educators to check out the beta of its K-5 Computer Science Curriculum, which will be launched in [ ... ]