Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
julius [2012/03/25 13:22] nishimotzjulius [2012/03/25 21:01] nishimotz
Line 10: Line 10:
  
 Reference (in Japanese) : http://ascii.jp/elem/000/000/547/547250/index-2.html Reference (in Japanese) : http://ascii.jp/elem/000/000/547/547250/index-2.html
 +
 +http://www.portaudio.com/archives/
  
 <code> <code>
-$ curl http://www.portaudio.com/archives/pa_stable_v19_20071207.tar.gz > pa.tar.gz+$ curl http://www.portaudio.com/archives/pa_stable_v19_20111121.tar.gz > pa.tar.gz
 $ tar xvfz pa.tar.gz  $ tar xvfz pa.tar.gz 
 $ cd portaudio $ cd portaudio
Line 20: Line 22:
 </code> </code>
  
-download julius-4.2.tar.gz from http://sourceforge.jp/projects/julius/+download julius-4.2.1.tar.gz from http://sourceforge.jp/projects/julius/
  
 <code> <code>
-$ tar xvfz julius-4.2.tar.gz  +$ tar xvfz julius-4.2.1.tar.gz  
-$ cd julius-4.2+$ cd julius-4.2.1
 $ CFLAGS='-arch i386' ./configure --with-mictype=portaudio $ CFLAGS='-arch i386' ./configure --with-mictype=portaudio
 +</code>
 +
 +<code>
 +****************************************************************
 +Julius/Julian libsent library rev.4.2.1:
 +
 +- Audio I/O
 +    primary mic device API   : libportaudio (PortAudio library (external))
 +    available mic device API :
 +    supported audio format   : RAW and WAV only
 +    NetAudio support         : no
 +- Language Modeling
 +    class N-gram support     : yes
 +- Libraries
 +    file decompression by    : zlib library
 +- Process management
 +    fork on adinnet input    : no
 + 
 +  Note: compilation time flags are now stored in "libsent-config".
 +        If you link this library, please add output of
 +        "libsent-config --cflags" to CFLAGS and
 +        "libsent-config --libs" to LIBS.
 +****************************************************************
 +</code>
 +
 +<code>
 $ make $ make
 $ sudo make install $ sudo make install
Line 52: Line 80:
 </code> </code>
  
 +==== julius-simple ====
 +
 +since 2012-03-25
 +
 +<code>
 +$ cd julius-4.2.1/julius-simple
 +$ make CFLAGS='-arch i386'
 +gcc -arch i386 -I../libjulius/include -I../libsent/include  `../libsent/libsent-config --cflags` `../libjulius/libjulius-config --cflags` -o julius-simple julius-simple.c -L../libjulius `../libjulius/libjulius-config --libs` -L../libsent `../libsent/libsent-config --libs`
 +$ file ./julius-simple
 +./julius-simple: Mach-O executable i386
 +</code>
 +
 +==== disable charconv ====
 +
 +since 2012-03-25
 +
 +On Snow Lerpard and julius 4.2.1, this option makes error as follows:
 +
 +<code>
 +CFLAGS='-arch i386' ./configure \
 +    --disable-class-ngram \
 +    --with-mictype=auto \
 +    --disable-zlib \
 +    --without-sndfile \
 +    --disable-pthread \
 +    --disable-plugin \
 +    --enable-charconv=no
 +</code>
 +
 +<code>
 +Undefined symbols:
 +  "_charconv_setup", referenced from:
 +      _main in main.o
 +  "_charconv_add_option", referenced from:
 +      _main in main.o
 +ld: symbol(s) not found
 +collect2: ld returned 1 exit status
 +make[1]: *** [julius] Error 1
 +</code>
 +
 +a patch to fix it:
 +
 +  * https://github.com/nishimotz/julius/commit/c034af79f6d1fd77b045e4966e3c72f9892a820c
 +
 +==== disable mic ====
 +
 +since 2012-03-25
 +
 +On Snow Lerpard and julius 4.2.1, this option makes error:
 +
 +<code>
 +CFLAGS='-arch i386' ./configure --with-mictype=no
 +</code>
 +
 +a patch to fix it:
 +
 +  * https://github.com/nishimotz/julius/commit/f12f4c2b3a4699617c5e366b247a2987c353252b
julius.txt · Last modified: 2012/03/25 21:03 by nishimotz
www.chimeric.de Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0