Spaces:
Running
Running
stream : fix a bug that inserted a lot of empty audio at the start
Browse files
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
|
| 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;
|