#27 Cannot remove silence from middle of file.

closed
nobody
None
5
2005-12-23
2005-11-08
J CMD
No

From man page: "If below_periods is negative, it is
treated as a positive value and is also used to indicate
the effect should restart processing as specified by
the above_periods, making it suitable for removing
periods of silence in the middle of a sound file."

However in version 12.17.7-2 (ubuntu)

sox in.wav out.wav silence 1 1 1% 1 1 1%

works, but

sox in.wav out.wav silence 1 1 1% -1 1 1%

gives the error

"sox: Periods must not be greater then zero"

However
a) from the man page this syntax is legal
b) Why does it warn the "Periods must not be greater
then zero" only when the period is less than zero?
c) "then" should be "than"?

Discussion

  • Chris Bagwell
    Chris Bagwell
    2005-12-23

    Logged In: YES
    user_id=71218

    Thanks for the report. This has been fixed with the release
    of SoX 12.17.9.

     
  • Chris Bagwell
    Chris Bagwell
    2005-12-23

    • status: open --> closed