mirror of
https://github.com/ggerganov/whisper.cpp.git
synced 2025-08-19 09:02:14 +02:00
wchess : minor
This commit is contained in:
@@ -44,10 +44,15 @@ void get_audio(int ms, std::vector<float> & audio) {
|
||||
}
|
||||
|
||||
bool check_running() {
|
||||
g_pcmf32.clear();
|
||||
//g_pcmf32.clear();
|
||||
return g_running;
|
||||
}
|
||||
|
||||
bool clear_audio() {
|
||||
g_pcmf32.clear();
|
||||
return true;
|
||||
}
|
||||
|
||||
void wchess_main(size_t i) {
|
||||
struct whisper_full_params wparams = whisper_full_default_params(whisper_sampling_strategy::WHISPER_SAMPLING_GREEDY);
|
||||
|
||||
@@ -81,6 +86,7 @@ void wchess_main(size_t i) {
|
||||
cb.check_running = check_running;
|
||||
cb.get_audio = get_audio;
|
||||
cb.set_moves = set_moves;
|
||||
cb.clear_audio = clear_audio;
|
||||
|
||||
WChess(g_contexts[i], wparams, cb, {}).run();
|
||||
if (i < g_contexts.size()) {
|
||||
|
Reference in New Issue
Block a user