whisper : add whisper_full_lang_id() for getting the context lang (#461)

This commit is contained in:
kamranjon
2023-02-05 04:46:26 -08:00
committed by GitHub
parent d012b5c7e4
commit a1c1583cc7
2 changed files with 11 additions and 1 deletions

View File

@@ -330,6 +330,9 @@ extern "C" {
// A segment can be a few words, a sentence, or even a paragraph.
WHISPER_API int whisper_full_n_segments(struct whisper_context * ctx);
// Language id associated with the current context
WHISPER_API int whisper_full_lang_id(struct whisper_context * ctx);
// Get the start and end time of the specified segment.
WHISPER_API int64_t whisper_full_get_segment_t0(struct whisper_context * ctx, int i_segment);
WHISPER_API int64_t whisper_full_get_segment_t1(struct whisper_context * ctx, int i_segment);