support hotwords for FunASR model (#39674)

Signed-off-by: zixiao <shunli.dsl@alibaba-inc.com>
Co-authored-by: zixiao <shunli.dsl@alibaba-inc.com>
This commit is contained in:
AllenDou
2026-04-22 02:25:06 -07:00
committed by GitHub
co-authored by zixiao
parent ed6d30377d
commit 9047288b68
4 changed files with 50 additions and 4 deletions
+6
View File
@@ -35,6 +35,12 @@ class SpeechToTextParams:
language: str | None = None
"""ISO 639-1 language code (validated / auto-detected)."""
hotwords: str | None = None
"""
hotwords refers to a list of important words or phrases that the model
should pay extra attention to during transcription.
"""
task_type: str = "transcribe"
"""``"transcribe"`` or ``"translate"``."""