2023-02-15 17:46:55 +00:00
|
|
|
#ifndef __RUBY_WHISPER_H
|
|
|
|
#define __RUBY_WHISPER_H
|
|
|
|
|
|
|
|
#include "whisper.h"
|
|
|
|
|
2024-10-28 13:43:27 +00:00
|
|
|
typedef struct {
|
|
|
|
VALUE *context;
|
|
|
|
VALUE user_data;
|
|
|
|
VALUE callback;
|
|
|
|
VALUE callbacks;
|
|
|
|
} ruby_whisper_callback_container;
|
|
|
|
|
2023-02-15 17:46:55 +00:00
|
|
|
typedef struct {
|
|
|
|
struct whisper_context *context;
|
|
|
|
} ruby_whisper;
|
|
|
|
|
|
|
|
typedef struct {
|
|
|
|
struct whisper_full_params params;
|
|
|
|
bool diarize;
|
2024-10-28 13:43:27 +00:00
|
|
|
ruby_whisper_callback_container *new_segment_callback_container;
|
2024-10-28 17:23:23 +00:00
|
|
|
ruby_whisper_callback_container *progress_callback_container;
|
|
|
|
ruby_whisper_callback_container *abort_callback_container;
|
2023-02-15 17:46:55 +00:00
|
|
|
} ruby_whisper_params;
|
|
|
|
|
|
|
|
#endif
|