mimic1 icon indicating copy to clipboard operation
mimic1 copied to clipboard

Mimic does not read immediately from standard input.

Open earboxer opened this issue 7 years ago • 1 comments

Running mimic-1.2.0.2

When running mimic from the command line, sentences are not read right away.

pi@picroft:~ $ mimic
Can you speak?
Hello?
Oh, I see.


.

The first line isn't read until the second line has been posted. The third line isn't read until the dot has been posted.

Is this intended functionality?

Is there a way to have lines spoke as they are received? ("\n.\n" seems to do the trick, but doesn't seem natural).

earboxer avatar May 17 '18 00:05 earboxer

If I recall correctly, the reason behind this is that there are many text books with \n characters at the end of each line in the text, and they use \n\n to split paragraphs. Therefore a single end of line is not a good utterance break marker.

This utterance break could be improved with better heuristics, but that is the reason of the \n\n anyway :-)

zeehio avatar May 17 '18 07:05 zeehio