Signed-off-by: Patrick von Platen <patrick.v.platen@gmail.com>
Co-authored-by: Cyrus Leung <cyrus.tl.leung@gmail.com>
This commit is contained in:
Patrick von Platen
2025-07-15 07:35:30 -07:00
committed by GitHub
co-authored by Cyrus Leung
parent 4ffd963fa0
commit e7e3e6d263
14 changed files with 913 additions and 47 deletions
+2 -1
View File
@@ -722,7 +722,8 @@ class SupportsTranscription(Protocol):
@classmethod
def get_generation_prompt(cls, audio: np.ndarray,
stt_config: SpeechToTextConfig, language: str,
stt_config: SpeechToTextConfig,
model_config: ModelConfig, language: str,
task_type: str,
request_prompt: str) -> PromptType:
"""Get the prompt for the ASR model.