title: HTK HCompV: Input file is not in RIFF format
body: <p>I'm trying to use HTK and setting up a project accordingly. I managed to encode training data using HCopy successfully, but upon trying to execute:</p>
  
  <pre><code>HCompV -C config -f 0.01 -m -S codetr.scp -M hmm0 proto
  </code></pre>
  
  <p>I get the following error:</p>
  
  <pre><code>ERROR [+6251] Input file is not in RIFF format
  ERROR [+6213] OpenWaveInput: Get[format]HeaderInfo failed
  ERROR [+6313] OpenAsChannel: OpenWaveInput failed
  ERROR [+6316] OpenBuffer: OpenAsChannel failed
  ERROR [+2050] LoadFile: Config parameters invalid
  FATAL ERROR - Terminating program
  </code></pre>
  
  <p>For reference, I'm running this in an MSYS shell and the config is as follows:</p>
  
  <pre><code># Coding parameters
  SOURCEFORMAT = WAV # We read in .wav files
  TARGETKIND = MFCC_0_D_A # Identifier for coefficients
  TARGETRATE = 100000.0 # 10ms = frame periodicity
  SAVECOMPRESSED = T
  SAVEWITHCRC = T
  WINDOWSIZE = 250000.0 # 25ms = time frame length
  USEHAMMING = T # Use of Hamming function for windowing
  PREEMCOEF = 0.97 # Pre-emphasis coefficient
  NUMCHANS = 26 # Number of filterbank channels
  CEPLIFTER = 22 # Length of cepstral filtering
  NUMCEPS = 12 # Number of MFCC coefficients
  ENORMALISE = F # Normalise intensity of data
  </code></pre>
  
  <p>the proto file is as follows: </p>
  
  <pre><code>~o &lt;VecSize&gt; 39 &lt;MFCC_0_D_A&gt;
  ~h "proto"
  &lt;BeginHMM&gt;
    &lt;NumStates&gt; 5
    &lt;State&gt; 2
      &lt;Mean&gt; 39
        0.0 0.0 0.0 0.0 ...
      &lt;Variance&gt; 39
        1.0 1.0 1.0 1.0 ...
    &lt;State&gt; 3
      &lt;Mean&gt; 39
        0.0 0.0 0.0 0.0 ...
      &lt;Variance&gt; 39
        1.0 1.0 1.0 1.0 ...
    &lt;State&gt; 4
      &lt;Mean&gt; 39
        0.0 0.0 0.0 0.0 ...
      &lt;Variance&gt; 39
        1.0 1.0 1.0 1.0 ...
    &lt;TransP&gt; 5
      0.0 1.0 0.0 0.0 0.0
      0.0 0.6 0.4 0.0 0.0
      0.0 0.0 0.6 0.4 0.0
      0.0 0.0 0.0 0.7 0.3
      0.0 0.0 0.0 0.0 0.0
  &lt;EndHMM&gt;
  </code></pre>
  
  <p>and the codetr.scp file is as follows (all files are present):</p>
  
  <pre><code>samples/cough1.wav samples/cough1.mfc
  samples/cough2.wav samples/cough2.mfc
  samples/cough3.wav samples/cough3.mfc
  samples/cough4.wav samples/cough4.mfc
  samples/silence1.wav samples/silence1.mfc
  samples/silence2.wav samples/silence2.mfc
  samples/silence3.wav samples/silence3.mfc
  samples/silence4.wav samples/silence4.mfc
  </code></pre>
  
  <p>Any and all help is appreciated!</p>