获取鼠标选择的文字,发声。
- eexpress
- 帖子: 58428
- 注册时间: 2005-08-14 21:55
- 来自: 长沙
获取鼠标选择的文字,发声。
作个bash,放到panel,就调用festival发声朗读。不知道如何获取鼠标选择的文字。
上次由 eexpress 在 2007-03-06 11:38,总共编辑 1 次。
● 鸣学
- huangjiahua
- 帖子: 3294
- 注册时间: 2005-03-30 0:27
- 联系:
- huangjiahua
- 帖子: 3294
- 注册时间: 2005-03-30 0:27
- 联系:
去用 xclip
Description: command line interface to X selections
xclip is a command line utility that is designed to run on any system with an
X11 implementation. It provides an interface to X selections ("the clipboard")
from the command line. It can read data from standard in or a file and place
it in an X selection for pasting into other X applications. xclip can also
print an X selection to standard out, which can then be redirected to a file
or another program.
Description: command line interface to X selections
xclip is a command line utility that is designed to run on any system with an
X11 implementation. It provides an interface to X selections ("the clipboard")
from the command line. It can read data from standard in or a file and place
it in an X selection for pasting into other X applications. xclip can also
print an X selection to standard out, which can then be redirected to a file
or another program.
(16:21:52) Huahua: eexpress: 让你的啥执行 xclip -o | festival --tts
(16:21:52) Huahua: 就可以啦
(16:22:14) Huahua: 或者, 你可以用 espeak 代替 festival
跃过无数的时间断层,只为了在