View Single Post
Old 01-08-2014, 08:09 AM   #12
eureka
but forgot what it's like
eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.
 
Posts: 741
Karma: 2345678
Join Date: Dec 2011
Location: north (by northwest)
Device: Kindle Touch
@peterhey, Has means "Hasharray property". Use lipc-hash-prop for interacting with such property. This program has usage info.

However, I think that text is fed to TTS through /tmp/ttsUSFifo FIFO. But I don't know anything about of process required for passing valid text. I executed echo 'Hello' > /tmp/ttsUSFifo twice. KT didn't say anything after first command, but it said Hello twice after second command.

EDIT: It looks like text written to FIFO is queued and TTS wiill say something when it gets 7 or more characters (excluding spaces). There is also another topic mentioned this FIFO.

TTS also supports control sequences. Control sequences (or, at least, \Mrk sequence) starts with ASCII ESC code. Stock reader passes text chunks in control sequences '\Mrk=<number>\<word>', where <number> is looks like word position in whole text and <word> is a word (with any following punctuation sign). Example of stock reader behavior:
Code:
echo -n $'\033''\Mrk=1\Hello '$'\033''\Mrk=7\TTS '$'\033''\Mrk=11\world. '$'\033''\Mrk=17\Hi.' > /tmp/ttsUSFifo
Note that I don't know semantic of \Mrk sequence and I might be wrong in starting counting from 1 or in determining of any following \Mrk numbers.

Last edited by eureka; 01-08-2014 at 09:53 AM.
eureka is offline   Reply With Quote