Bug#861211: festival: text2wave no longer works in pipe

2017-11-05 Thread Andy Bennett

Hi,


Sorry for having missed your report for so long.

Andy Bennett, on mer. 26 avril 2017 00:23:34 +0100, wrote:

echo "$string" | text2wave |aplay -q

This now no longer works under Jessie.


Indeed, text2wave now uses fseek, which can't work with pipes.

I have forwarded the report to upstream, but I'm afraid it'll be
difficult for them to work back to avoid using fseek. It probably means
you will have to use a temporary file.


No worries and thanks for getting back to me.

I've been using a temporary file thus:

-
TMP=`mktemp`
echo "$string" | text2wave > $TMP
aplay -q $TMP
rm $TMP
-

...and if that's the intended behaviour then it'd be nice to get an error 
when it gets a pipe rather than just nothing. Better still would be to 
change the interface to only deal with named files and not output to stdout 
at all.






Regards,
@ndy

--
andy...@ashurst.eu.org
http://www.ashurst.eu.org/
0x7EBA75FF



Bug#861211: festival: text2wave no longer works in pipe

2017-11-05 Thread Samuel Thibault
Control: forwarded -1 festival-t...@festvox.org
Control: tags -1 + upstream
Control: severity -1 normal

Hello,

Sorry for having missed your report for so long.

Andy Bennett, on mer. 26 avril 2017 00:23:34 +0100, wrote:
> echo "$string" | text2wave |aplay -q
> 
> This now no longer works under Jessie.

Indeed, text2wave now uses fseek, which can't work with pipes.

I have forwarded the report to upstream, but I'm afraid it'll be
difficult for them to work back to avoid using fseek. It probably means
you will have to use a temporary file.

Samuel



Bug#861211: festival: text2wave no longer works in pipe

2017-04-25 Thread Andy Bennett
Package: festival
Version: 1:2.1~release-8
Severity: important

Dear Maintainer,

I have been using text2wave in a script under Wheezy thus:

-
echo "$string" | text2wave |aplay -q
-

This now no longer works under Jessie.


text2wave receives a SIGPIPE and no audio is heard:

-
$ echo "hello" |text2wave | aplay
Playing WAVE 'stdin' : Signed 16 bit Little Endian, Rate 16000 Hz, Mono

0:0,141,0
$
-



If you run the following two commands, the file generated by each is different:

-
$ echo "hello" |text2wave > /tmp/x0.wav
$ echo "hello" |text2wave | cat > /tmp/x1.wav
-

-
$ diff /tmp/x0.wav /tmp/x1.wav
Binary files /tmp/x0.wav and /tmp/x1.wav differ
-

-
$ diff /tmp/x0.wav /tmp/x1.wav  -a
1c1
� RIFF 
�>}datan��
---
� RIFF$WAVEfmt 
�>}data��
432c432
���
\ No newline at end of file
---
���RIFF �>}datan
\ No newline at end of file
-

x0.wav works (audio is heard):

-
$ aplay /tmp/x0.wav
Playing WAVE '/tmp/x0.wav' : Signed 16 bit Little Endian, Rate 16000 Hz, Mono
-

x1.wav does not work (no audio is heard, but no error is reported):

-
$ aplay /tmp/x1.wav
Playing WAVE '/tmp/x1.wav' : Signed 16 bit Little Endian, Rate 16000 Hz, Mono
-


Thanks for anything you can do to get me working again!




-- System Information:
Debian Release: 8.7
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.9.0-0.bpo.2-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_GB.utf8, LC_CTYPE=en_GB.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages festival depends on:
ii  adduser3.113+nmu3
ii  alsa-utils 1.0.28-1
ii  libasound2 1.0.28-1
ii  libc6  2.19-18+deb8u7
ii  libestools2.1  1:2.1~release-8
ii  libgcc11:4.9.2-10
ii  libncurses55.9+20140913-1+b1
ii  libstdc++6 4.9.2-10
ii  libtinfo5  5.9+20140913-1+b1
ii  lsb-base   4.1+Debian13+nmu1
ii  sgml-base  1.26+nmu4

Versions of packages festival recommends:
ii  festvox-kallpc16k [festival-voice]  1.4.0-5

Versions of packages festival suggests:
pn  festival-freebsoft-utils  
pn  pidgin-festival   

-- no debconf information