zoukankan      html  css  js  c++  java
  • Ubuntu中安装编译并测试HTK语音识别库

    1.在网上看到首先必须确保电脑上安装了g++和libx11

    g++ --version 
    //检测g++版本
    sudo apt-get install libx11-dev:i386

    2.然后可从HTK官网 上 下载 HTK语音识别库

    3.解压:sudo tar xzf HTK-3.4.1.tar.gz

    4.打开文件夹:cd htk

    5.在/usr/local/目录下安装文件:sudo ./configure --prefix=/usr/local/

    出现:

     setting
    config.status: creating HTKLVRec/Makefile
    config.status: WARNING:  HTKLVRec/Makefile.inseems to ignore the --datarootdir setting
    config.status: creating Makefile
    config.status: WARNING:  Makefile.inseems to ignore the --datarootdir setting
    **************************************************
     
    HTK is now ready to be built.
     
    Type"make all"to build the HTK libraries
    and tools.
     
    Then"make install"toinstallthem.
     
    The tools will be installedin/usr/local//bin
     
    Build notes: Language Modelling tools will be
    built. HDecode will not be built. You can build
    it manually later by running 'makehdecode
    install-hdecode'
    
    **************************************************

    然后,我按照上述步骤进行: make all

    结果出现错误,找不到一个文件夹或者目录:

     在网上搜了搜解决方案:

    sudo apt-get purge libc6-dev
    sudo apt-get install libc6-dev
    
    sudo apt-get install libc6-dev-i386

    解决~

     然后又报错.... 下载的语音库的问题,其中“空格键”与“Tab”键的混用,导致编译出错,这个语音库自动设置是不可改写的,所以我研究了半天页不太对。

    最后,将makefile中的报错那一行的空格改为Tab即可。

    但之后 还是报了很多很多错,于是我放弃了

    没错,这个博客就是来记录我的安装失败历程的......


  • 相关阅读:
    0019. Remove Nth Node From End of List (M)
    0018. 4Sum (M)
    0278. First Bad Version (E)
    0273. Integer to English Words (H)
    0017. Letter Combinations of a Phone Number (M)
    0016. 3Sum Closest (M)
    0015. 3Sum (M)
    软件测试常见面试题
    如何快速掌握DDT数据驱动测试?
    selenium--三种等待方式
  • 原文地址:https://www.cnblogs.com/farewell-farewell/p/6081837.html
Copyright © 2011-2022 走看看