Dmitry Chestnykh 6a29415a83 Add Japanese sounds (language: "ja") %!s(int64=7) %!d(string=hai) anos
..
en 47a4cf294e Rename generate to capgensounds. %!s(int64=12) %!d(string=hai) anos
ja 6a29415a83 Add Japanese sounds (language: "ja") %!s(int64=7) %!d(string=hai) anos
ru 47a4cf294e Rename generate to capgensounds. %!s(int64=12) %!d(string=hai) anos
zh b7c8157b2b Add contributed Chinese sounds. %!s(int64=12) %!d(string=hai) anos
README.markdown 7ac252236e Update README for capgensounds. %!s(int64=12) %!d(string=hai) anos
beep.wav 47a4cf294e Rename generate to capgensounds. %!s(int64=12) %!d(string=hai) anos
main.go 6a29415a83 Add Japanese sounds (language: "ja") %!s(int64=7) %!d(string=hai) anos

README.markdown

How to create sounds for other languages

  • Record sounds for 0-9. Speak fast enough to make sound files small. Make sure the level of sound is the same as in the provided samples for English (this is important for making captchas harder to break). Save files in 8 KHz 8-bit PCM WAV format. (To do this in Audacity, set "Project Rate (Hz)" at the lower left corner to 8000, then click File > Export, select "Other uncompressed files", click Options..., select "WAV (Microsoft)" for Header, and "Unsigned 8 bit PCM" for Encoding.)

If you're not sure if your sounds are okay or how to save them properly, just save one of them into any format (MP3 is okay), and send it to me dmitry@codingrobots.com. I'll check it, and if it's okay, I'll ask you for other sounds, and process them myself (in this case, you can stop reading.)

  • Put 0.wav - 9.wav into the subdirectory with language name (e.g. "ua").

  • Open main.go and edit "var langs" on line 21 to include the new directory name.

  • go install && $GOROOT/bin/capgensounds

If all goes well, fork this repository, commit your changes, and send me a pull request.