如何在Ubuntu WSL上安装和运行Tacotron2? [英] How to install and run Tacotron2 on Ubuntu WSL?

查看:129
本文介绍了如何在Ubuntu WSL上安装和运行Tacotron2?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在WSL Windows 10 Pro 2004(19041.388)上运行Ubuntu 20.04,我非常想运行 Tacotron2 并试用该功能。我已经通过命令行从git安装了Tacotron2,但是我不确定它是否能够成功构建。我是Linux和Docker的初学者,上面链接的Tacotron2的安装说明似乎令人困惑。

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. I have installed Tacotron2 from git via command-line, but I'm uncertain whether it built successfully. I am a beginner with Linux and Docker, and the install instructions from above-linked Tacotron2 seems confusing.

所以我在这里:


  1. 已安装Docker,确认运行正常,一切正常。

  2. 已下载 Tacotron2 通过git cmd-line-成功。

  3. 执行以下命令: sudo docker build -t tacotron-2_image -f docker / Dockerfile docker / -发生了很多看起来很成功的事情,但是最后出现了一个错误:

  1. Installed Docker, confirmed up and running, all good.
  2. Downloaded Tacotron2 via git cmd-line - success.
  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:

软件包libav-tools不可用,但由另一个软件包引用。这可能意味着该软件包丢失,已被废弃或只能从其他来源获得。但是,以下软件包将其替换:

ffmpeg

E:软件包 libav-tools没有安装候选命令 / bin / bash -c apt-get安装-y libasound-dev portaudio19-dev libportaudio2 libportaudiocpp0 ffmpeg libav-tools wget git vim'

返回非零代码: 100

这时我被卡住了。的确,我希望对此错误保持一致,但综合而言,我正在寻找能够运行Tacotron2并最终能够通过某人的声音将其输入mp3文件,然后能够对其进行输入的确切步骤。一些文本,然后它将说出来。

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的理解,但是我很想知道我是否走错了路。

That is my understanding of what Tacotron2 is, but I am keen to know if I am going down the wrong path.

推荐答案

您的问题看起来与 https://github.com/Rayhane-mamah/Tacotron-2/issues/475

问题发生的原因是您拥有 libav- Dockerfile中的工具安装指令,该指令不再具有候选安装选项。
要消除该错误,您需要在任何文本编辑器中打开 docker / Dockerfile 并删除 libav-tools 从包含

The issue happens because you have libav-tools installation directives in your Dockerfile which is no longer has installation candidates. To elliminate the error you need to open docker/Dockerfile in any text editor and remove libav-tools from the line that contains


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

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

具有类似


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

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

由于软件包 ffmpeg 已经在此列表中,因此您无需添加它再次。

Since package ffmpeg already in this list you don't need to add it again.

您也可以使用WSL Shell中的sed命令从Dockerfile中删除 libav-tools (可能需要添加<$ sed之前的c $ c> sudo 如果权限有误):

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.

这篇关于如何在Ubuntu WSL上安装和运行Tacotron2?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆