Menu

#364 sox spectrogram title option breaks when using keyword

open
nobody
5
2024-11-30
2022-11-14
No

When running:

sox result.wav -n spectrogram -t chorus

The call fails with invalid option for spectrogram when using a reserved keyword (e.g. chorus, reverb), other titles work as expected. The same problem happens using spectrogram parameter -c.

sox FAIL spectrogram: invalid option `-t'
sox FAIL spectrogram: usage: [options] ...

this works as expected (creating spectrogram with title chorus2):

sox result.wav -n spectrogram -t chorus2

-V -V output:

sox:      SoX v
time:     Sep 18 2022 10:46:40
uname:    Darwin xxxxxxx 22.1.0 Darwin Kernel Version 22.1.0: Sun Oct  9 20:14:54 PDT 2022; root:xnu-8792.41.9~2/RELEASE_X86_64 x86_64
compiler: gcc Apple LLVM 14.0.0 (clang-1400.0.29.102)
arch:     1288 48 88 L
sox INFO formats: detected file format type `wav'
sox DBUG wav: Searching for 66 6d 74 20
sox DBUG wav: WAV Chunk fmt
sox DBUG wav: Searching for 64 61 74 61
sox DBUG wav: WAV Chunk fact
sox DBUG wav: WAV Chunk data
sox DBUG wav: Reading Wave file: IEEE Float format, 1 channel, 48000 samp/sec
sox DBUG wav:         192000 byte/sec, 4 block align, 32 bits/samp, 2552768 data bytes
sox DBUG wav:         638192 Samps/chans
sox DBUG wav: Searching for 4c 49 53 54
sox FAIL spectrogram: invalid option `-t'
sox FAIL spectrogram: usage: [options]

Discussion

  • Jürgen Schwietering

    workaround used in an automated production system is padding the name using spaces: i.e.:

    sox result.wav -n spectrogram -t " chorus "
    
     

Log in to post a comment.

MongoDB Logo MongoDB