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

KonstantinSource codes8c4603c

master
732 B26 linesraw
1#pragma once
2#include "../AppState.h"
3
4// Dropdown list which implements language selector control
5class LanguageDropdown
6{
7	HWND m_hWnd = nullptr;
8	std::vector<uint32_t> keys;
9	int getInitialSelection( AppState& state ) const;
10
11public:
12	operator HWND() const
13	{
14		return 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.
19	void initialize( HWND owner, int idc, AppState& state );
20
21	// Get the ID of the currently selected language, or UINT_MAX if nothing's selected
22	uint32_t selectedLanguage();
23
24	// Get the ID of the currently selected language, and store in registry
25	void saveSelection( AppState& state );
26};