分页: 1 / 1
获取鼠标选择的文字,发声。
发表于 : 2007-03-05 9:47
由 eexpress
作个bash,放到panel,就调用festival发声朗读。不知道如何获取鼠标选择的文字。
发表于 : 2007-03-05 15:21
由 huangjiahua
ee 先帮我整理下那转码脚本,
再告诉你思路
发表于 : 2007-03-05 16:14
由 huangjiahua
去用
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.
(16:21:52) Huahua: eexpress: 让你的啥执行 xclip -o | festival --tts
(16:21:52) Huahua: 就可以啦
(16:22:14) Huahua: 或者, 你可以用 espeak 代替 festival
发表于 : 2007-03-05 16:30
由 eexpress
hh, 大懒虫。