ch_wave "-pc LONGEST" option broken

Bug #723854 reported by chaered
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
speech-tools (Ubuntu)
Fix Released
Undecided
Sergio Oller

Bug Description

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

Related branches

Revision history for this message
chaered (chaered) wrote :
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in speech-tools (Ubuntu):
status: New → Confirmed
Revision history for this message
Sergio Oller (zeehio) wrote :

I will submit a patch to both debian and upstream.

As a workaround, you can use "longest" in lowercase.

Changed in speech-tools (Ubuntu):
assignee: nobody → Sergio Oller (zeehio)
status: Confirmed → In Progress
Sergio Oller (zeehio)
Changed in speech-tools (Ubuntu):
status: In Progress → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package speech-tools - 1:2.1~release-7

---------------
speech-tools (1:2.1~release-7) unstable; urgency=low

  [ Samuel Thibault ]
  * Team upload.
  * rules: Remove config/config on clean.
  * Bump Standards-Version to 3.9.5 (no changes).
  * patches/doc-doc.diff: Fix build when libestools is not installed yet.
  * rules: Do not install refman.pdf, it does not build.

  [ Sergio Oller ]
  * EST_Tokenstream: Add support to read from istream to reduce
    Festival HTS disk input/output usage.
  * Add several methods to EST_WaveFile and EST_Wave to write waves
    by parts (header and data separately) in order improve text2wave
    performance in festival package on long texts.
  * rules: dh_auto_clean must depend on dh_auto_configure to clean safely.
  * Check fread worked when loading files: (Closes: #715728, #716618,
    #716578, #716193, #716464)
  * Build -dbg packages.
  * Build speech-tools-doc package.
  * Allow "-pc LONGEST" in ch_wave. (LP: #723854)

 -- Samuel Thibault <email address hidden> Sun, 20 Apr 2014 02:44:41 +0200

Changed in speech-tools (Ubuntu):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.