Public bug reported:

Binary package hint: speech-tools

# Demonstration that "ch_wave -pc LONGEST" is broken.
# It should use the longest channel, but instead works like FIRST.

yes | dd bs=16000 count=1 >y1.raw
cat y1.raw y1.raw y1.raw  >y2.raw
echo Make 1s, 3s sounds
ch_wave -itype raw -n 1 -f 16000 -otype wav y1.raw >i1.wav
ch_wave -itype raw -n 1 -f 16000 -otype wav y2.raw >i2.wav
echo Combine 1+3, 3+1
ch_wave -pc LONGEST i1.wav i2.wav >o12.wav
ch_wave -pc LONGEST i2.wav i1.wav >o21.wav
ls -l i1.wav i2.wav o12.wav o21.wav

dpkg -S ch_wave
dpkg --print-avail speech-tools | grep Version

1+0 records in
1+0 records out
16000 bytes (16 kB) copied, 0.000103022 s, 155 MB/s
Make 1s, 3s sounds
Combine 1+3, 3+1
-rw-r--r-- 1 chaered chaered 16044 2011-02-23 11:54 i1.wav
-rw-r--r-- 1 chaered chaered 48044 2011-02-23 11:54 i2.wav
-rw-r--r-- 1 chaered chaered 32044 2011-02-23 11:54 o12.wav   <========== 
SHOULD BE SAME SIZE AS o21.wav
-rw-r--r-- 1 chaered chaered 96044 2011-02-23 11:54 o21.wav
speech-tools: /usr/share/man/man1/ch_wave.1.gz
speech-tools: /usr/bin/ch_wave
Version: 1:2.0.95~beta-1

ProblemType: Bug
DistroRelease: Ubuntu 10.10
Package: speech-tools 1:2.0.95~beta-1
ProcVersionSignature: Ubuntu 2.6.35-24.42-generic 2.6.35.8
Uname: Linux 2.6.35-24-generic x86_64
NonfreeKernelModules: fglrx
Architecture: amd64
Date: Wed Feb 23 11:48:13 2011
InstallationMedia: Ubuntu 10.04.1 LTS "Lucid Lynx" - Release amd64 (20100816.1)
ProcEnviron:
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: speech-tools

** Affects: speech-tools (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug maverick

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/723854

Title:
  ch_wave "-pc LONGEST" option broken

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to