whisper : add missing speaker turn API function for whisper_state (#1330)

This commit is contained in:
Didzis Gosko
2023-10-03 22:55:48 +03:00
committed by GitHub
parent c76c11e59c
commit 4037705531
2 changed files with 5 additions and 0 deletions

View File

@@ -485,6 +485,7 @@ extern "C" {
// Get whether the next segment is predicted as a speaker turn
WHISPER_API bool whisper_full_get_segment_speaker_turn_next(struct whisper_context * ctx, int i_segment);
WHISPER_API bool whisper_full_get_segment_speaker_turn_next_from_state(struct whisper_state * state, int i_segment);
// Get the text of the specified segment
WHISPER_API const char * whisper_full_get_segment_text (struct whisper_context * ctx, int i_segment);