我需要为我的Android应用程序实现语音到文本离线功能,我发现我试图在ubuntu中安装库sphinxbase但是出了问题并且发生了错误。 我已经下载了sphinxbase和pockectsphinx的两个软件包并放在同一个目录中,因为文件说我运行了./autogen.sh文件成功运行了这一条消息后运行make命令来编译make命令之后发生了一些错误
libtool: install: /usr/bin/install -c .libs/libsphinxbase.a /usr/local/lib/libsphinxbase.a
libtool: install: chmod 644 /usr/local/lib/libsphinxbase.a
libtool: install: ranlib /usr/local/lib/libsphinxbase.a/bin/bash: /home/speech: No such file or directory
make[4]: *** [install-libLTLIBRARIES] Error 127
make[4]: Leaving directory `/home/speech to text/Untitled Folder/sphinxbase/src/libsphinxbase'
make[3]: *** [install-am] Error 2
make[3]: Leaving directory `/home/speech to text/Untitled Folder/sphinxbase/src/libsphinxbase'
make[2]: *** [install-recursive] Error 1
make[2]: Leaving directory `/home/speech to text/Untitled Folder/sphinxbase/src/libsphinxbase'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory `/home/speech to text/Untitled Folder/sphinxbase/src'
make: *** [install-recursive] Error 1
答案 0 :(得分:0)
剥去目录名称中的空格。
尝试将“speech to text”重命名为“speechtotext”。