yum-archive/TaSTT-Whisper

High-performance GPGPU inference of OpenAI's Whisper automatic speech recognition (ASR) model

git clone https://git.yummers.dev/yum-archive/TaSTT-Whisper

KonstantinConsistent cancellation API across the library: S_OK = continue, S_FALSE = stopad097a7

master
382 B15 linesraw
1#pragma once
2
3namespace Whisper
4{
5	using pfnLoadProgress = HRESULT( __stdcall* )( double val, void* pv ) noexcept;
6	// Return S_OK to continue, or S_FALSE to fail with "The operation was canceled by the user" status code
7	using pfnCancel = HRESULT( __stdcall* )( void* pv ) noexcept;
8	
9	struct sLoadModelCallbacks
10	{
11		pfnLoadProgress progress;
12		pfnCancel cancel;
13		void* pv;
14	};
15}