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

KonstantinSource codes8c4603c

master
420 B16 linesraw
1using System.Runtime.InteropServices;
2
3namespace Whisper.Internal
4{
5	[UnmanagedFunctionPointer( CallingConvention.StdCall )]
6	delegate void pfnLoggerSink( IntPtr context, eLogLevel lvl, [MarshalAs( UnmanagedType.LPUTF8Str )] string message );
7
8	struct sLoggerSetup
9	{
10		[MarshalAs( UnmanagedType.FunctionPtr )]
11		public pfnLoggerSink sink;
12		IntPtr context;
13		public eLogLevel level;
14		public eLoggerFlags flags;
15	}
16}