whisper : add whisper_n_audio_ctx and check for invalid audio_ctx

closes #344
This commit is contained in:
Georgi Gerganov
2022-12-31 09:55:33 +02:00
parent 3467230a77
commit d97e6005e9
2 changed files with 10 additions and 1 deletions

View File

@@ -177,6 +177,7 @@ extern "C" {
WHISPER_API int whisper_n_len (struct whisper_context * ctx); // mel length
WHISPER_API int whisper_n_vocab (struct whisper_context * ctx);
WHISPER_API int whisper_n_text_ctx (struct whisper_context * ctx);
WHISPER_API int whisper_n_audio_ctx (struct whisper_context * ctx);
WHISPER_API int whisper_is_multilingual(struct whisper_context * ctx);
// The probabilities for the next token