Download whisper.cpp/bindings/ruby/ext/ruby_whisper.h from Dyen/Rovin: direct link, hf CLI and curl.
- Browser
- Download file 1.94 kB
-
https://huggingface.co/spaces/Dyen/Rovin/resolve/main/whisper.cpp/bindings/ruby/ext/ruby_whisper.h
- Command line
-
hf download hf://spaces/Dyen/Rovin/whisper.cpp/bindings/ruby/ext/ruby_whisper.h
-
curl -L -o ruby_whisper.h https://huggingface.co/spaces/Dyen/Rovin/resolve/main/whisper.cpp/bindings/ruby/ext/ruby_whisper.h
1.94 kB
| typedef struct { | |
| VALUE *context; | |
| VALUE user_data; | |
| VALUE callback; | |
| VALUE callbacks; | |
| } ruby_whisper_callback_container; | |
| typedef struct { | |
| struct whisper_context *context; | |
| } ruby_whisper; | |
| typedef struct { | |
| struct whisper_full_params params; | |
| bool diarize; | |
| ruby_whisper_callback_container *new_segment_callback_container; | |
| ruby_whisper_callback_container *progress_callback_container; | |
| ruby_whisper_callback_container *encoder_begin_callback_container; | |
| ruby_whisper_callback_container *abort_callback_container; | |
| VALUE vad_params; | |
| } ruby_whisper_params; | |
| typedef struct { | |
| struct whisper_vad_params params; | |
| } ruby_whisper_vad_params; | |
| typedef struct { | |
| VALUE context; | |
| int index; | |
| } ruby_whisper_segment; | |
| typedef struct { | |
| whisper_token_data *token_data; | |
| const char *text; | |
| } ruby_whisper_token; | |
| typedef struct { | |
| VALUE context; | |
| } ruby_whisper_model; | |
| typedef struct { | |
| struct whisper_vad_segments *segments; | |
| } ruby_whisper_vad_segments; | |
| typedef struct { | |
| VALUE segments; | |
| int index; | |
| } ruby_whisper_vad_segment; | |
| typedef struct { | |
| struct whisper_vad_context *context; | |
| } ruby_whisper_vad_context; | |