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
8c4603c
master
1#pragma once 2#include <stdint.h> 3#include "MfStructs.h" 4struct IMFSourceReader ; 5 6namespace Whisper 7{ 8__interface __declspec(novtable ,uuid ("013583aa-c9eb-42bc-83db-633c2c317051" ) )iAudioBuffer :public IUnknown 9 { 10uint32_t __stdcallcountSamples ()const ; 11const float * __stdcall getPcmMono ()const ; 12const float * __stdcall getPcmStereo ()const ; 13HRESULT __stdcallgetTime (int64_t & rdi )const ; 14 }; 15 16__interface __declspec(novtable ,uuid ("35b988da-04a6-476a-a193-d8891d5dc390" ) )iAudioReader :public IUnknown 17 { 18HRESULT __stdcallgetDuration (int64_t & rdi )const ; 19HRESULT __stdcallgetReader (IMFSourceReader ** pp )const ; 20HRESULT __stdcallrequestedStereo ()const ; 21 }; 22 23__interface __declspec(novtable ,uuid ("747752c2-d9fd-40df-8847-583c781bf013" ) )iAudioCapture :public IUnknown 24 { 25HRESULT __stdcallgetReader (IMFSourceReader ** pp )const ; 26const sCaptureParams & __stdcallgetParams ()const ; 27 }; 28 29__interface __declspec (novtable ,uuid ( "fb9763a5 - d77d -4b6e-aff8 - f494813cebd8 " ) )iMediaFoundation :public IUnknown 30 { 31HRESULT __stdcallloadAudioFile (LPCTSTR path ,bool stereo ,iAudioBuffer ** pp )const ; 32HRESULT __stdcallopenAudioFile (LPCTSTR path ,bool stereo ,iAudioReader ** pp ); 33 34HRESULT __stdcalllistCaptureDevices (pfnFoundCaptureDevices pfn ,void * pv ); 35HRESULT __stdcallopenCaptureDevice (LPCTSTR endpoint ,const sCaptureParams & captureParams ,iAudioCapture ** pp ); 36 }; 37 38HRESULT __stdcallinitMediaFoundation (iMediaFoundation ** pp ); 39}