Menu

Installing Sphinxbase and sphinxtrain

Help
Leimiaoren
2015-11-25
2016-01-23
  • Leimiaoren

    Leimiaoren - 2015-11-25

    Hi so I have downloaded the pre-built binaries of sphinxbase and sphinxtrain. How do I install these pre-built binaries?

     
    • Nickolay V. Shmyrev

      You do not need to install them, just unpack in a working folder together with the acoustic model folder.

       
      • Leimiaoren

        Leimiaoren - 2015-11-26

        So you see, all along I thought there was something wrong on how I have installed sphinxbase thats why my sphinxtrain is not generating.mfc files when in fact I was already following the correct ways. When was the pre-alpha released? is it really working?

        because I get a lot of errors in running the sphinxtrain scripts.

        First, it is not generating .mfc files.

        Second, I downloaded the .mfc files of the an4 database just so the scripts will run again but it fails to enter phase 3 of MODULE: 20 Training Context Independent models.

        I will attach here my log file and my configuration file

        please do help me, I already looked for an expert around my place but no one knows how sphinx works.

         
  • Nickolay V. Shmyrev

    In this particular case you misconfiugred the training. You should have used sph version of an4. The wav type must be nist. The extension must be sph.

     
    • Leimiaoren

      Leimiaoren - 2015-11-27

      Thanks for your reply sir, but I have another question. If I have to use the SPH version for an4, does that mean that I have to convert my CHAVACANO (own dialect) WAV files to SPH just so sphinxtrain could produce .mfc files?

       
      • Nickolay V. Shmyrev

        No, you do not need to convert, you just need to configure type to 'mswav', extension 'wav' in sphinx_trian.cfg.

         
  • Shashikant

    Shashikant - 2015-12-07

    I am new to sphinx tool. I am installing sphinxbase-5prealpha and pocketsphinx-5prealpha on ubuntu 14.04 for keyword recognition. To install sphinxbase-5prealpha, I typed ./autogen.sh, it gives following error:-
    Warning: I am going to run configure' with no arguments. If you wish to pass any to it, please specify them on the./autogen.sh' command line.

    processing .
    Running libtoolize...
    libtoolize: putting auxiliary files in .'. libtoolize: copying file./ltmain.sh'
    libtoolize: putting macros in AC_CONFIG_MACRO_DIR, m4'. libtoolize: copying filem4/libtool.m4'
    libtoolize: copying file m4/ltoptions.m4' libtoolize: copying filem4/ltsugar.m4'
    libtoolize: copying file m4/ltversion.m4' libtoolize: copying filem4/lt~obsolete.m4'
    Running aclocal ...
    Running autoheader...
    Running automake --foreign --copy ...
    src/libsphinxbase/util/Makefile.am:11: warning: whitespace following trailing backslash
    Running autoconf ...
    Running ./configure ...
    checking for a BSD-compatible install... /usr/bin/install -c
    checking whether build environment is sane... yes
    checking for a thread-safe mkdir -p... /bin/mkdir -p
    checking for gawk... gawk
    checking whether make sets $(MAKE)... yes
    checking whether make supports nested variables... yes
    checking build system type... x86_64-unknown-linux-gnu
    checking host system type... x86_64-unknown-linux-gnu
    checking for style of include used by make... GNU
    checking for gcc... gcc
    checking whether the C compiler works... yes
    checking for C compiler default output file name... a.out
    checking for suffix of executables...
    checking whether we are cross compiling... no
    checking for suffix of object files... o
    checking whether we are using the GNU C compiler... yes
    checking whether gcc accepts -g... yes
    checking for gcc option to accept ISO C89... none needed
    checking whether gcc understands -c and -o together... yes
    checking dependency style of gcc... gcc3
    checking for library containing strerror... none required
    checking for gcc... (cached) gcc
    checking whether we are using the GNU C compiler... (cached) yes
    checking whether gcc accepts -g... (cached) yes
    checking for gcc option to accept ISO C89... (cached) none needed
    checking whether gcc understands -c and -o together... (cached) yes
    checking dependency style of gcc... (cached) gcc3
    checking for gcc option to accept ISO C99... -std=gnu99
    checking for gcc -std=gnu99 option to accept ISO Standard C... (cached) -std=gnu99
    configure: WARNING: Libtool does not cope well with whitespace in pwd
    checking how to print strings... printf
    checking for a sed that does not truncate output... /bin/sed
    checking for grep that handles long lines and -e... /bin/grep
    checking for egrep... /bin/grep -E
    checking for fgrep... /bin/grep -F
    checking for ld used by gcc -std=gnu99... /usr/bin/ld
    checking if the linker (/usr/bin/ld) is GNU ld... yes
    checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
    checking the name lister (/usr/bin/nm -B) interface... BSD nm
    checking whether ln -s works... yes
    checking the maximum length of command line arguments... 1572864
    checking whether the shell understands some XSI constructs... yes
    checking whether the shell understands "+="... yes
    checking how to convert x86_64-unknown-linux-gnu file names to x86_64-unknown-linux-gnu format... func_convert_file_noop
    checking how to convert x86_64-unknown-linux-gnu file names to toolchain format... func_convert_file_noop
    checking for /usr/bin/ld option to reload object files... -r
    checking for objdump... objdump
    checking how to recognize dependent libraries... pass_all
    checking for dlltool... no
    checking how to associate runtime and link libraries... printf %s\n
    checking for ar... ar
    checking for archiver @FILE support... @
    checking for strip... strip
    checking for ranlib... ranlib
    checking command to parse /usr/bin/nm -B output from gcc -std=gnu99 object... ok
    checking for sysroot... no
    checking for mt... mt
    checking if mt is a manifest tool... no
    checking how to run the C preprocessor... gcc -std=gnu99 -E
    checking for ANSI C header files... yes
    checking for sys/types.h... yes
    checking for sys/stat.h... yes
    checking for stdlib.h... yes
    checking for string.h... yes
    checking for memory.h... yes
    checking for strings.h... yes
    checking for inttypes.h... yes
    checking for stdint.h... yes
    checking for unistd.h... yes
    checking for dlfcn.h... yes
    checking for objdir... .libs
    checking if gcc -std=gnu99 supports -fno-rtti -fno-exceptions... no
    checking for gcc -std=gnu99 option to produce PIC... -fPIC -DPIC
    checking if gcc -std=gnu99 PIC flag -fPIC -DPIC works... yes
    checking if gcc -std=gnu99 static flag -static works... yes
    checking if gcc -std=gnu99 supports -c -o file.o... yes
    checking if gcc -std=gnu99 supports -c -o file.o... (cached) yes
    checking whether the gcc -std=gnu99 linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
    checking whether -lc should be explicitly linked in... no
    checking dynamic linker characteristics... GNU/Linux ld.so
    checking how to hardcode library paths into programs... immediate
    checking whether stripping libraries is possible... yes
    checking if libtool supports shared libraries... yes
    checking whether to build shared libraries... yes
    checking whether to build static libraries... yes
    checking for bison... bison -y
    checking for ANSI C header files... (cached) yes
    checking whether byte ordering is bigendian... no
    checking return type of signal handlers... void
    checking for long long... yes
    checking size of long long... 8
    checking size of long... 8
    checking for popen... yes
    checking for perror... yes
    checking for snprintf... yes
    checking errno.h usability... yes
    checking errno.h presence... yes
    checking for errno.h... yes
    checking for sgesv_ in -llapack... no
    checking for log in -lm... yes
    checking pthread.h usability... yes
    checking pthread.h presence... yes
    checking for pthread.h... yes
    checking for pthread_create in -lpthread... yes
    checking pulse/pulseaudio.h usability... yes
    checking pulse/pulseaudio.h presence... yes
    checking for pulse/pulseaudio.h... yes
    checking for pa_simple_new in -lpulse-simple... yes
    checking for pa_strerror in -lpulse... yes
    checking for doxygen... no
    checking for a Python interpreter with version >= 2.6... python
    checking for python... /usr/bin/python
    checking for python version... 2.7
    checking for python platform... linux2
    checking for python script directory... ${prefix}/lib/python2.7/dist-packages
    checking for python extension module directory... ${exec_prefix}/lib/python2.7/dist-packages
    checking for python2.7... (cached) /usr/bin/python
    checking for a version of Python >= '2.1.0'... yes
    checking for the distutils Python package... yes
    checking for Python include path... -I/usr/include/python2.7
    checking for Python library path... -L/usr/lib -lpython2.7
    checking for Python site-packages path... /usr/lib/python2.7/dist-packages
    checking python extra libraries... -lpthread -ldl -lutil -lm
    checking python extra linking flags... -Xlinker -export-dynamic -Wl,-O1 -Wl,-Bsymbolic-functions
    checking consistency of all components of python development environment... no
    configure: error: in `/home/shashikant/Downloads/Downloads/Speech Software/Sphinx/sphinxbase-5prealpha':
    configure: error:
    Could not link test program to Python. Maybe the main Python library has been
    installed in some non-standard library path. If so, pass it to configure,
    via the LDFLAGS environment variable.
    Example: ./configure LDFLAGS="-L/usr/non-standard-path/python/lib"
    ============================================================================
    ERROR!
    You probably have to install the development version of the Python package
    for your distribution. The exact name of this package varies among them.
    ============================================================================

    See `config.log' for more details

    Please help me in installing it.

     
    • Nickolay V. Shmyrev

      To ask a new question start a new thread.

      Provide config.log, as message says it has more details about your problem.

       
  • Shashikant

    Shashikant - 2015-12-08

    Thanks for a quick response. From next time I will open a new thread for a new question.
    Here is the config.log file.

     
    • Bharat Mallapur

      Bharat Mallapur - 2016-01-23

      You just need to install the python-dev package. To do this, just type in the following command at the terminal prompt. You must be connected to the internet in order for the download and install to happen as expected.

      sudo apt-get install python-dev

      After this is done, please run ./configure again. If it complains about swig being missing, please install SWIG as well.
      sudo apt-get install swig

      After this, you should hopefully not have any further issues in the compilation steps.

       

Log in to post a comment.