9 stdenv.mkDerivation rec {
10 name = "pocketsphinx-5prealpha";
13 url = "mirror://sourceforge/cmusphinx/${name}.tar.gz";
14 sha256 = "1n9yazzdgvpqgnfzsbl96ch9cirayh74jmpjf7svs4i7grabanzg";
17 propagatedBuildInputs = [ sphinxbase ];
19 nativeBuildInputs = [ pkg-config ];
20 buildInputs = [ python27 swig2 ];
23 description = "Voice recognition library written in C";
24 homepage = "http://cmusphinx.sourceforge.net";
25 license = lib.licenses.free;
26 platforms = lib.platforms.linux;
35 $ cat << EOF > vocabulary.txt
36 oh mighty computer /1e-40/
42 $ pocketsphinx_continuous -inmic yes -kws vocabulary.txt 2> /dev/null
43 # after you say "hello world":