mirror of
https://github.com/ggml-org/whisper.cpp.git
synced 2026-08-06 01:50:53 -05:00
* scripts : update sync [no ci] * files : reorganize [no ci] * sync : llama.cpp * cmake : link math library * cmake : build normal ggml library * files : move headers to include * objc : fix path to ggml-metal.h * ci : fix WHISPER_CUDA -> GGML_CUDA * scripts : sync LICENSE [no ci]
27 lines
675 B
C
27 lines
675 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
|
|
|
|
#include <stdint.h>
|
|
|
|
#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,
|
|
int64_t n_ctx,
|
|
int64_t n_mel,
|
|
float * mel,
|
|
float * out);
|
|
|
|
#if __cplusplus
|
|
}
|
|
#endif
|