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

KonstantinWorkaround for the Microsoft’s bug in their MP3 decoder MFT9df2ee2

master
480 B18 linesraw
1#pragma once
2#include <stdint.h>
3#include <mfidl.h>
4#include <mfobjects.h>
5#include <mfreadwrite.h>
6#include "../Whisper/audioConstants.h"
7
8namespace Whisper
9{
10	HRESULT createMediaType( bool stereo, IMFMediaType** pp );
11
12	HRESULT getStreamDuration( IMFSourceReader* reader, int64_t& duration );
13
14	HRESULT validateCurrentMediaType( IMFSourceReader* reader, uint32_t expectedChannels );
15
16	struct iAudioReader;
17	void setPreciseSamplesCount( const iAudioReader* ar, int64_t count );
18}