yum-archive/TaSTT-Whisper
High-performance GPGPU inference of OpenAI's Whisper automatic speech recognition (ASR) model
git clone https://git.yummers.dev/yum-archive/TaSTT-Whisper
8c4603c
master
1#pragma once 2#include <vector> 3#include <string> 4 5// command-line parameters 6struct whisper_params 7{ 8uint32_t n_threads ; 9uint32_t n_processors = 1 ; 10uint32_t offset_t_ms = 0 ; 11uint32_t offset_n = 0 ; 12uint32_t duration_ms = 0 ; 13uint32_t max_context = UINT_MAX ; 14uint32_t max_len = 0 ; 15 16float word_thold = 0.01f ; 17 18bool speed_up = false; 19bool translate = false; 20bool diarize = false; 21bool output_txt = false; 22bool output_vtt = false; 23bool output_srt = false; 24bool output_wts = false; 25bool print_special = false; 26bool print_colors = true; 27bool no_timestamps = false; 28 29std ::string language = "en "; 30std ::wstring model = L"models/ggml-base.en.bin" ; 31std ::vector < std ::wstring > fname_inp ; 32 33whisper_params (); 34 35bool parse (int argc ,wchar_t * argv [] ); 36}; 37 38void whisper_print_usage (int argc ,wchar_t ** argv ,const whisper_params & params );