Speech Synthesizer in 1k of Javascript

#Computers

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.

  594

 

You may also be interested in:

Using Supercomputers to Predict Wars, Revolutions and Armed Robberies
Cryptography That Could End Software Piracy
FuckItJS: the Original Javascript Error Steamroller
Vintage Terminal: Terminal Emulator Emulates 1980s Monitor
The unspoken truth about managing geeks