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 "../AppState.h" 3 4// Dropdown list which implements language selector control 5class LanguageDropdown 6{ 7HWND m_hWnd = nullptr ; 8std ::vector < uint32_t > keys ; 9int getInitialSelection (AppState & state )const ; 10 11public : 12operator HWND ()const 13 { 14return m_hWnd ; 15 } 16 17// Query language list form the native library, populate the combo box 18// Then load the last saved language selection from registry, and preselect an item. 19void initialize (HWND owner ,int idc ,AppState & state ); 20 21// Get the ID of the currently selected language, or UINT_MAX if nothing's selected 22uint32_t selectedLanguage (); 23 24// Get the ID of the currently selected language, and store in registry 25void saveSelection (AppState & state ); 26};