![无法安装 espeak 软件](https://linux22.com/image/847444/%E6%97%A0%E6%B3%95%E5%AE%89%E8%A3%85%20espeak%20%E8%BD%AF%E4%BB%B6.png)
每当我尝试使用 apt-get install espeak 安装 espeak 时,它都会显示
umang@ubuntu:~/Desktop$ apt-get install espeak
E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?
umang@ubuntu:~/Desktop$ sudo apt-get install espeak
Reading package lists... Done
Building dependency tree
Reading state information... Done
espeak is already the newest version.
The following packages were automatically installed and are no longer required:
calibre-bin fonts-mathjax libchm1 libjs-jquery libjs-mathjax libjs-sphinxdoc
libjs-underscore libpodofo0.9.0 libtidy-0.99-0 python-beautifulsoup
python-cherrypy3 python-cssselect python-cssutils python-dateutil
python-dnspython python-feedparser python-markdown python-mechanize
python-netifaces python-pygments python-pyparsing python-repoze.lru
python-routes python-utidylib python-webob
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
umang@ubuntu:~/Desktop$ clear
我使用桌面作为文件夹,因为 espeak 包存在于此文件夹中。我也尝试过在 root 权限下使用 sudo -s
但同样的事情仍然发生。
你能建议我一些纠正措施吗?
答案1
espeak
软件包已经安装在您的电脑上。sudo apt-get autoremove
运行将自动删除所有未使用的软件包。
答案2
语音合成器 说话 在 Ubuntu 12.04.LTS 之前版本中默认安装。无需在那里安装它们。
要使用此应用程序,请打开终端并输入:
espeak "Hello World. This is an example."
有很多选项,包括速度或结果音调(见espeak 的手册页)。
在后续的 Ubuntu 版本中说话被替换为spd 检测其中还有更多选项。