From 348c0ad9530e5f4ccfc229a1586bbfc1021705f2 Mon Sep 17 00:00:00 2001 From: Konstantin Date: Fri, 3 Feb 2023 14:46:13 +0100 Subject: C++ console example now outputs text files when asked --- Examples/main/textWriter.h | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 Examples/main/textWriter.h (limited to 'Examples/main/textWriter.h') 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 -- cgit v1.2.3