Speech Synthesizer in 1k of Javascript


Mon, Mar 19th, 2012 11:00 by capnasty NEWS

If you're not impressed by this, nothing will: Mathieu 'p01' Henri has released the JS1K Speech Synthesis, a piece of Java programming no bigger than 1K that can speak as you type or say whole sentences.

JS1K#4 was colliding with our long awaited family vacation. I had very little time to work. Audio was ON this time and I had this tiny speech synthesizer laying around waiting to be ported to JavaScript and optimized to oblivion.

¤ Based on Tiny Speech Synth by Stepanov Andrey
¤ Optimized and minified manually, by yours truly
¤ Compressed down to 1020 bytes using First Crush by @tpdown

To go under 1K, I had to limit the synthesizer to two formant filters using either a sawtooth or noise and discard plosive sounds. In other words I had to sacrifice quality a bit.



You may also be interested in:

The Secret History of Silicon Valley
Once Upon: 1997 Versions of Google+, YouTube and Facebook
Russia's President says country's ranking 'very difficult' when compared with America's
Windchime: Adding a Musical Dimension to the Act of Composing Written Text
Tiny Yet Functional Atari 810 Disk Drive