Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update buffer size and overlap size in whisper-processing.h and defau… #95

Merged
merged 4 commits into from
May 2, 2024
Prev Previous commit
Next Next commit
Update audio processing timestamp calculation in whisper-processing.cpp
  • Loading branch information
royshil committed Apr 30, 2024
commit aab0657ddc792db2c6bb680db8e9d1ca8bb3afce
3 changes: 2 additions & 1 deletion src/whisper-utils/whisper-processing.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,8 @@ void process_audio_from_buffer(struct transcription_filter_data *gf)
}

obs_log(gf->log_level, "processing %lu frames (%d ms), start timestamp %llu",
gf->last_num_frames, (int)(gf->last_num_frames * 1000.0f / gf->sample_rate),
gf->last_num_frames,
(int)((float)gf->last_num_frames * 1000.0f / (float)gf->sample_rate),
start_timestamp);

// time the audio processing
Expand Down
Loading