[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#688349: flite can't write to stdout (or any non-file, e.g. fifo)



On Sunday, September 23, 2012 09:05:25 Samuel Thibault wrote:
> Wesley J. Landaker, le Fri 21 Sep 2012 15:20:12 -0600, a écrit :
> > I tried every dirty trick [...] bash redirects to /dev/stdout,
> 
> I'm not sure what you tried exactly, but
> 
> flite test.txt /dev/stdout > test.wav
> 
> does work for me (although it is true that a "-" shortcut would be
> convenient).

Yes, but this only works if you do that, one, literal, non-useful-in-any-way 
thing. Your example is equivalent to "flite test.txt test.wav", which 
obviously works.

If you try to do anything with stdout execpt shove it directly into a file 
(like pipe the result to another program) it doesn't work *at all*.

Examples of things that DON'T work:

  flite test.txt /dev/stdout | cat > test.wav
  flite test.txt /dev/stdout | oggenc - -o test.ogg

  mkfifo /some/fifo
  flite test.txt /some/fifo &
  cat /some/fifo > test.wav

Attachment: signature.asc
Description: This is a digitally signed message part.


Reply to: