parallel : print time of audio boundaries + fix timings

This commit is contained in:
Georgi Gerganov
2022-10-29 14:08:23 +03:00
parent e5044f87d9
commit dec40be58f
2 changed files with 41 additions and 12 deletions

View File

@@ -213,6 +213,9 @@ extern "C" {
const float * samples,
int n_samples);
// Split the input audio in chunks and process each chunk separately using whisper_full()
// It seems this approach can offer some speedup in some cases.
// However, the transcription accuracy can be worse at the beginning and end of each chunk.
WHISPER_API int whisper_full_parallel(
struct whisper_context * ctx,
struct whisper_full_params params,