User Tools

Site Tools


julius

Julius

Mac OS X build

  • 2010-11-12: tested with julius-4.1.5
  • 2011-10-08: tested with julius-4.2
  • 2012-03-25: tested with julius-4.2.1

Reference (in Japanese) : http://ascii.jp/elem/000/000/547/547250/index-2.html

http://www.portaudio.com/archives/

$ curl http://www.portaudio.com/archives/pa_stable_v19_20111121.tar.gz > pa.tar.gz
$ tar xvfz pa.tar.gz 
$ cd portaudio
$ CFLAGS='-arch i386' ./configure
$ make
$ sudo make install

download julius-4.2.1.tar.gz from http://sourceforge.jp/projects/julius/

$ tar xvfz julius-4.2.1.tar.gz 
$ cd julius-4.2.1
$ CFLAGS='-arch i386' ./configure --with-mictype=portaudio
****************************************************************
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.
****************************************************************
$ make
$ sudo make install
$ which julius
/usr/local/bin/julius
$ julius 
Julius rev.4.2.1 - based on 
JuliusLib rev.4.2.1 (fast)  built for i686-apple-darwin

Copyright (c) 1991-2011 Kawahara Lab., Kyoto University
Copyright (c) 1997-2000 Information-technology Promotion Agency, Japan
Copyright (c) 2000-2005 Shikano Lab., Nara Institute of Science and Technology
Copyright (c) 2005-2011 Julius project team, Nagoya Institute of Technology

Try '-setting' for built-in engine configuration.
Try '-help' for run time options.

$ file /usr/local/bin/julius 
/usr/local/bin/julius: Mach-O executable i386

julius-simple

since 2012-03-25

$ 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

disable charconv

since 2012-03-25

On Snow Lerpard and julius 4.2.1, this option makes error as follows:

CFLAGS='-arch i386' ./configure \
    --disable-class-ngram \
    --with-mictype=auto \
    --disable-zlib \
    --without-sndfile \
    --disable-pthread \
    --disable-plugin \
    --enable-charconv=no
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

a patch to fix it:

disable mic

since 2012-03-25

On Snow Lerpard and julius 4.2.1, this option makes error:

CFLAGS='-arch i386' ./configure --with-mictype=no

a patch to fix it:

$ ./julius-simple/julius-simple -setting
JuliusLib rev.4.1.5 (fast)

Engine specification:
 -  Base setup   : fast
 -  Supported LM : DFA, N-gram, Word
 -  Extension    : NoClassNGram NoMic NoPThread
 -  Compiled by  : gcc -arch i386

Library configuration: version 4.1.5
 - Audio input
    primary A/D-in driver   : N/A
    available drivers       :
    wavefile formats        : RAW and WAV only
    max. length of an input : 320000 samples, 150 words
 - Language Model
    class N-gram support    : no
    word id unit            : short (2 bytes)
 - Acoustic Model
    multi-path treatment    : autodetect
 - External library
    file decompression by   : gzip command
 - Process hangling
    fork on adinnet input   : no
julius.txt ยท Last modified: 2012/03/25 21:03 by nishimotz

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki