mirror of
https://github.com/ggerganov/whisper.cpp.git
synced 2024-12-24 14:46:39 +00:00
5e47e223bd
* coreml : use Core ML encoder inference * coreml : simlpify whisper_encode + log messages * whisper : resolve rebase conflicts * coreml : add scripts for CoreML model generation * bench-all : recognize COREML flag
23 lines
562 B
C
23 lines
562 B
C
// Wrapper of the Core ML Whisper Encoder model
|
|
//
|
|
// Code is derived from the work of Github user @wangchou
|
|
// ref: https://github.com/wangchou/callCoreMLFromCpp
|
|
|
|
#if __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
struct whisper_coreml_context;
|
|
|
|
struct whisper_coreml_context * whisper_coreml_init(const char * path_model);
|
|
void whisper_coreml_free(struct whisper_coreml_context * ctx);
|
|
|
|
void whisper_coreml_encode(
|
|
const whisper_coreml_context * ctx,
|
|
float * mel,
|
|
float * out);
|
|
|
|
#if __cplusplus
|
|
}
|
|
#endif
|