我刚刚升级到 Ubuntu 12.10,正在玩一些 Python 代码。在早期版本中,我曾经能够做到:
import speechd
Run Code Online (Sandbox Code Playgroud)
现在我知道该模块不存在。当我尝试安装 python-speechd 时,它还告诉我以下内容:
Package python-speechd is not available, but is referred to by another package.
This may mean that the package is missing, has been obsolete, or is only available from another source
E: Package 'python-speechd' has no installation candidate.
Run Code Online (Sandbox Code Playgroud)
我该怎么办?如果可以,我想继续使用语音调度程序。https://live.gnome.org/Orca/SpeechDispatcher说我应该尝试安装 python-speechd,但它不起作用。预先感谢您 - 我到处搜索,但找不到任何东西。
编辑: 我做了一些挖掘,这似乎是 Python 2.7 的问题,因为安装了 python3-speechd 但没有安装 python-speechd。以下工作:
python3 -c "import speechd"
Run Code Online (Sandbox Code Playgroud)
但这不是(找不到模块语音):
python2.7 -c "import speechd"
Run Code Online (Sandbox Code Playgroud)
将它与 Python 2.7 一起使用会很棒。
第二次编辑: 我尝试从这里安装 python-speechd:https ://launchpad.net/ubuntu/quantal/i386/python-speechd/0.7.1-6ubuntu3 …