对 Wav 文件运行 Julius 语音识别时权限无效
如何使用 Julius 将包含口语单词的 Wav 文件转换为文本包含这些单词的文件?我读过朱利叶斯书我已经下载了 Voxforge 上的 Julius 快速入门版本。从文档中,我想我应该在另一个文件中列出我想要处理的 Wav 文件,并通过 filelist 参数将该文件的文件名传递给 Julius。
例如,我在 /home/myuser/test 中有 julius
可执行文件和其他快速启动文件(语法文件、conf 等),并且在 /home/myuser/test 中有所有 Wav 文件/声音的。 julius
属于我的用户,有执行权限,所有音频文件都有777权限。我的文件列表位于 /home/myuser/test/audio/filelist.txt,其中包含以下行:
/home/myuser/test/audio/somewav1.wav
/home/myuser/test/audio/somewav2.wav
/home/myuser/test/audio/somewav3.wav
但是,当我运行时:
./julian -input rawfile -filelist /home/myuser/test/audio/filelist.txt -C julian.jconf
我收到错误:
./julian: line 1: /home/myuser/test/audio/somewav1.wav: Permission denied
我无法理解为什么它无法访问该文件。它由 my 用户拥有,以 my 用户身份运行,并读取 my 用户拥有的文件。
为什么朱利叶斯给我这个错误?
How do you use Julius to convert a Wav file containing spoken words into a text file containing those words? I've read the Julius Book and I've downloaded the Julius quickstart release on Voxforge. From the docs, I think I'm suppose to list the Wav file I want to process in another file, and pass the filename of that file to Julius via the filelist param.
For example, I have the julius
executable and the other quickstart files (grammar files, conf, etc) in /home/myuser/test, and I have all my Wav files in /home/myuser/test/audio. julius
is owned by my user, and has execute permission, and all the audio files have 777 permission. I have my filelist at /home/myuser/test/audio/filelist.txt, with lines like:
/home/myuser/test/audio/somewav1.wav
/home/myuser/test/audio/somewav2.wav
/home/myuser/test/audio/somewav3.wav
However, when I run:
./julian -input rawfile -filelist /home/myuser/test/audio/filelist.txt -C julian.jconf
I get the error:
./julian: line 1: /home/myuser/test/audio/somewav1.wav: Permission denied
I can't fathom why it can't access the file. It's owned by my user, running as my user, and reading a file owned by my user.
Why is Julius giving me this error?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
只需尝试在句子前面使用
sudo
即可。喜欢Just try using
sudo
Front of sentence. Like