Make Faster Whisper and OpenAI Whisper work

This commit is contained in:
mesonium
2024-07-03 18:43:27 +02:00
committed by hueso
parent b0adecef7a
commit 2d7630a757
7 changed files with 261 additions and 51 deletions

View File

@@ -15,6 +15,7 @@
from abc import ABC, abstractmethod
from pathlib import Path
from typing import Any
from ..helper import Results
@@ -22,5 +23,9 @@ from ..helper import Results
class Model(ABC):
@abstractmethod
def transcribe(self, result: Results, audio_file: Path) -> str:
return ''
def transcribe(self, result: Results, audio_file: Path) -> None:
pass
@abstractmethod
def set_config(self, config: Any) -> None:
pass