对 Wav 文件运行 Julius 语音识别时权限无效

发布于 2024-12-07 00:16:44 字数 1198 浏览 1 评论 0原文

如何使用 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

挽清梦 2024-12-14 00:16:44

只需尝试在句子前面使用 sudo 即可。喜欢

sudo ./julian -input rawfile -filelist /home/myuser/test/audio/filelist.txt -C julian.jconf

Just try using sudo Front of sentence. Like

sudo ./julian -input rawfile -filelist /home/myuser/test/audio/filelist.txt -C julian.jconf
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文