Make Faster Whisper and OpenAI Whisper work
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user