| 1 |
/* SpeechRecognizer_def.h |
| 2 |
* |
| 3 |
* Copyright (C) 2025,2026 Anastasia Shchupak |
| 4 |
* |
| 5 |
* This code is free software; you can redistribute it and/or modify |
| 6 |
* it under the terms of the GNU General Public License as published by |
| 7 |
* the Free Software Foundation; either version 3 of the License, or (at |
| 8 |
* your option) any later version. |
| 9 |
* |
| 10 |
* This code is distributed in the hope that it will be useful, but |
| 11 |
* WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
| 13 |
* See the GNU General Public License for more details. |
| 14 |
* |
| 15 |
* You should have received a copy of the GNU General Public License |
| 16 |
* along with this work. If not, see <http://www.gnu.org/licenses/>. |
| 17 |
*/ |
| 18 |
|
| 19 |
|
| 20 |
#define ooSTRUCT SpeechRecognizer |
| 21 |
oo_DEFINE_CLASS (SpeechRecognizer, Daata) |
| 22 |
|
| 23 |
oo_STRING (d_modelName) |
| 24 |
oo_STRING (d_languageName) |
| 25 |
|
| 26 |
#if oo_DECLARING |
| 27 |
void v1_info () override; |
| 28 |
autoWhisperContext whisperContext; |
| 29 |
#endif |
| 30 |
|
| 31 |
#if oo_DESTROYING |
| 32 |
theLivingSpeechRecognizers.erase (this); // undangle |
| 33 |
#endif |
| 34 |
|
| 35 |
oo_END_CLASS (SpeechRecognizer) |
| 36 |
#undef ooSTRUCT |
| 37 |
|
| 38 |
|
| 39 |
/* End of file SpeechRecognizer_def.h */ |