Skip to content

Commit

Permalink
stream : fix a bug that inserted a lot of empty audio at the start
Browse files Browse the repository at this point in the history
The quality was terrible due to this
  • Loading branch information
ggerganov committed Jan 14, 2023
1 parent 4ef3398 commit a6dbd91
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/stream/stream.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -459,7 +459,7 @@ int main(int argc, char ** argv) {
struct whisper_context * ctx = whisper_init_from_file(params.model.c_str());

std::vector<float> pcmf32 (n_samples_30s, 0.0f);
std::vector<float> pcmf32_old(n_samples_30s, 0.0f);
std::vector<float> pcmf32_old;
std::vector<float> pcmf32_new(n_samples_30s, 0.0f);

std::vector<whisper_token> prompt_tokens;
Expand Down

0 comments on commit a6dbd91

Please sign in to comment.