FS#11506 - Python script to generate .talk clips
Opened by Daniel Dalton (ddalton) - Friday, 30 July 2010, 07:47 GMT
Last edited by Rafaël Carré (funman) - Saturday, 28 August 2010, 11:00 GMT
I felt the need for a quick, easy and reliable way to generate .talk
clips from the Linux console. I'm totally blind, and rbutil was not an
option as QT apps aren't accessible under Linux.
I decided to develop a script in python
to do just this. It works reasonably well, though it is basic, but it
does what I want.
This patch creates the file trunk/tools/talkclips.py
python talkclips.py will give usage info, though all you do is supply
one argument, the directory you wish to create talk clips under.
Creates clips for files and directories (recursively)
Logs to a file so usage can be examined.
Validation checks for the command line as well as error checking.
Maybe it might be handy to add functionality so a file can be passed,
but I couldn't see why someone would want this...? A progress
measurement may be useful, but I think this just over complicates the
Requirements should just be python, espeak, and rbspeexenc should be in
the same dir unless you modify the path in my script. You obviously need
some kind of shell to work with os.system(), eg. bash.
Anyway let me know your thoughts (diff attached)
Saturday, 28 August 2010, 11:00 GMT
Reason for closing: Accepted
Additional comments about closing: r27914