ggerganov commited on
Commit
ca49ab0
·
unverified ·
1 Parent(s): 9c35c0d

stream : fix a bug that inserted a lot of empty audio at the start

Browse files
Files changed (1) hide show
  1. examples/stream/stream.cpp +1 -1
examples/stream/stream.cpp CHANGED
@@ -459,7 +459,7 @@ int main(int argc, char ** argv) {
459
  struct whisper_context * ctx = whisper_init_from_file(params.model.c_str());
460
 
461
  std::vector<float> pcmf32 (n_samples_30s, 0.0f);
462
- std::vector<float> pcmf32_old(n_samples_30s, 0.0f);
463
  std::vector<float> pcmf32_new(n_samples_30s, 0.0f);
464
 
465
  std::vector<whisper_token> prompt_tokens;
 
459
  struct whisper_context * ctx = whisper_init_from_file(params.model.c_str());
460
 
461
  std::vector<float> pcmf32 (n_samples_30s, 0.0f);
462
+ std::vector<float> pcmf32_old;
463
  std::vector<float> pcmf32_new(n_samples_30s, 0.0f);
464
 
465
  std::vector<whisper_token> prompt_tokens;