简体   繁体   English

如何在 Ubuntu WSL 上安装和运行 Tacotron2?

[英]How to install and run Tacotron2 on Ubuntu WSL?

I am running Ubuntu 20.04 on WSL Windows 10 Pro 2004 (19041.388), and I am very much wanting to run Tacotron2 and try out the functionality.我在 WSL Windows 10 Pro 2004 (19041.388) 上运行 Ubuntu 20.04,我非常想运行Tacotron2并试用该功能。 I have installed Tacotron2 from git via command-line, but I'm uncertain whether it built successfully.我已经通过命令行从 git 安装了 Tacotron2,但我不确定它是否构建成功。 I am a beginner with Linux and Docker, and the install instructions from above-linked Tacotron2 seems confusing.我是 Linux 和 Docker 的初学者,上面链接的 Tacotron2 的安装说明似乎令人困惑。

So here is where I am at:所以这就是我所在的位置:

  1. Installed Docker, confirmed up and running, all good.安装Docker,确认启动并运行,一切正常。
  2. Downloaded Tacotron2 via git cmd-line - success.通过 git 命令行下载Tacotron2 - 成功。
  3. Executed this command: sudo docker build -t tacotron-2_image -f docker/Dockerfile docker/ - a lot of stuff happened that seemed successful, but at the end, there was an error:执行了这个命令: sudo docker build -t tacotron-2_image -f docker/Dockerfile docker/ - 发生了很多看似成功的事情,但最后却出现了错误:

Package libav-tools is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source However the following packages replace it:

ffmpeg

E: Package 'libav-tools' has no installation candidate The command '/bin/bash -c apt-get install -y libasound-dev portaudio19-dev libportaudio2 libportaudiocpp0 ffmpeg libav-tools wget git vim'

returned a non-zero code: 100

At this point I am stuck.在这一点上,我被困住了。 It's true that I'm looking to get unstuck on this error, but comprehensively I'm looking for exact steps to be able to run Tacotron2 and ultimately be able to feed it an mp3 file with someone's voice, and then be able to feed it some text, which it will then "speak" in that voice.确实,我希望摆脱这个错误,但总的来说,我正在寻找能够运行 Tacotron2 并最终能够用某人的声音为其提供 mp3 文件的确切步骤,然后能够提供它一些文本,然后它将以那种声音“说话”。

That is my understanding of what Tacotron2 is, but I am keen to know if I am going down the wrong path.这就是我对 Tacotron2 的理解,但我很想知道我是否走错了路。

Your issue looks quite similar to https://github.com/Rayhane-mamah/Tacotron-2/issues/475您的问题看起来与https://github.com/Rayhane-mamah/Tacotron-2/issues/475非常相似

The issue happens because you have libav-tools installation directives in your Dockerfile which is no longer has installation candidates.出现此问题是因为您的libav-tools安装指令,该指令不再具有安装候选者。

To eliminate the error you need to open docker/Dockerfile in any text editor and remove libav-tools from the line that contains要消除错误,您需要在任何文本编辑器中打开docker/Dockerfile并从包含的行中删除libav-tools

apt-get install -y libasound-dev portaudio19-dev libportaudio2 libportaudiocpp0 ffmpeg libav-tools wget git vim

to have something like有类似的东西

apt-get install -y libasound-dev portaudio19-dev libportaudio2 libportaudiocpp0 ffmpeg wget git vim

Since package ffmpeg already in this list you don't need to add it again.由于 package ffmpeg已经在此列表中,因此您无需再次添加。

You can also remove libav-tools from the Dockerfile using sed command in the WSL shell (might need to add sudo before sed if you have error with permissions): You can also remove libav-tools from the Dockerfile using sed command in the WSL shell (might need to add sudo before sed if you have error with permissions):

sed -i docker/Dockerfile -e 's/libav-tools\ //g'

Then your build command should pass.然后你的构建命令应该通过。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM