Files
joplin/packages/whisper-voice-typing/cpp/HybridWhisperVoiceTyping.cpp
T
2026-02-04 10:03:02 +00:00

21 lines
561 B
C++

#include <memory>
#include "HybridWhisperVoiceTyping.hpp"
#include "HybridWhisperSession.hpp"
#include "findLongestSilence_test.hpp"
#include "SingleThread_test.hpp"
using namespace margelo::nitro::whispervoicetyping;
SessionPointer HybridWhisperVoiceTyping::openSession(const SessionOptions& options) {
return std::make_shared<HybridWhisperSession> (options);
}
std::shared_ptr<Promise<void>> HybridWhisperVoiceTyping::test() {
return Promise<void>::async([=] () -> void {
findLongestSilence_test();
SingleThread_test();
});
}