initial whisper integration

This commit is contained in:
Concedo 2024-05-29 23:13:11 +08:00
parent 4ed9ba7352
commit f24aef8792
10 changed files with 16204 additions and 16 deletions

View file

@ -142,6 +142,26 @@ struct sd_generation_outputs
int status = -1;
const char * data = "";
};
struct whisper_load_model_inputs
{
const char * model_filename;
const char * executable_path;
const int clblast_info = 0;
const int cublas_info = 0;
const char * vulkan_info;
const int debugmode = 0;
};
struct whisper_generation_inputs
{
const char * prompt;
const char * audio_data;
const bool quiet = false;
};
struct whisper_generation_outputs
{
int status = -1;
const char * text = "";
};
extern std::string executable_path;
extern std::string lora_filename;