mirror of
https://github.com/laurent22/joplin.git
synced 2026-05-07 20:02:45 +00:00
21 lines
561 B
C++
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();
|
|
});
|
|
}
|