android - 将 *.lm 转换为 *.dmp 文件以构建语音识别的语言模型

标签 android speech-recognition

在执行命令sudo sphinx_lm_convert -i 9055.lm -o 9055.dmp时,我收到以下给出的错误。

sphinx_lm_convert: error while loading shared libraries: libsphinxbase.so.1: cannot open shared object file: No such file or directory

我不明白原因。请帮忙。

最佳答案

此错误表示系统无法在安装位置找到共享库。您很可能使用默认前缀/usr/local/lib 安装它,该前缀不包含在库搜索路径中。您可以通过以下方式修复:

  • 设置 LD_LIBRARY_PATH 环境变量以指向 sphinxbase 的安装位置(通常为/usr/local/lib)
  • 修改/etc/ld.so.conf 以包含/usr/local/lib
  • 使用/usr 前缀而不是/usr/local/lib 编译并安装 sphinxbase

要了解有关共享库和系统范围配置的更多信息,请阅读动态库:

http://tldp.org/HOWTO/Program-Library-HOWTO/shared-libraries.html

关于android - 将 *.lm 转换为 *.dmp 文件以构建语音识别的语言模型,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10630747/

相关文章:

android - Facebook 游戏请求 - 不属于应用程序的对象

java - RecyclerView不显示数据

speech-recognition - 如何比较两个MFCC特征向量或两个语音话语的MFCC特征向量之间的相似度

flutter/Dart : speech to text (offline and continuous) for any language

java - 如何设置android状态栏的标题居中

android - View.invalidate() 非常慢。备择方案?

android - android studio 新项目 checkout 中 GIT 和 GITHub 的区别?

speech-recognition - 谷歌语音 API : Can recognize speech from OGG file

azure - 如何让 Microsoft Azure Speech To Text 在程序运行时开始转录? (统一,C#)

nlp - 如何在 SRILM 中实现基于监督类的语言模型?