summaryrefslogtreecommitdiffstats
path: root/Examples/main/textWriter.h
diff options
context:
space:
mode:
authorKonstantin <const@const.me>2023-02-03 14:46:13 +0100
committerKonstantin <const@const.me>2023-02-03 14:46:13 +0100
commit348c0ad9530e5f4ccfc229a1586bbfc1021705f2 (patch)
tree9a1629fd5615c4e0a7d652c6df5c4dee2cdcc44b /Examples/main/textWriter.h
parentc869213e639f523752f5b41706486b320f994d1b (diff)
C++ console example now outputs text files when asked
Diffstat (limited to 'Examples/main/textWriter.h')
-rw-r--r--Examples/main/textWriter.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/Examples/main/textWriter.h b/Examples/main/textWriter.h
new file mode 100644
index 0000000..a5e46dc
--- /dev/null
+++ b/Examples/main/textWriter.h
@@ -0,0 +1,7 @@
+#pragma once
+#include "../../Whisper/API/iContext.cl.h"
+
+// These functions print output segments into text files of various formats
+HRESULT writeText( Whisper::iContext* context, LPCTSTR audioPath, bool timestamps );
+HRESULT writeSubRip( Whisper::iContext* context, LPCTSTR audioPath );
+HRESULT writeWebVTT( Whisper::iContext* context, LPCTSTR audioPath ); \ No newline at end of file