fix: force STT French language + initial prompt (ignore client auto)
This commit is contained in:
+3
-2
@@ -129,11 +129,12 @@ async def transcribe(
|
|||||||
with model_lock:
|
with model_lock:
|
||||||
segments, info = model.transcribe(
|
segments, info = model.transcribe(
|
||||||
tmp_path,
|
tmp_path,
|
||||||
language=language if language != "auto" else None,
|
language="fr",
|
||||||
task="transcribe",
|
task="transcribe",
|
||||||
beam_size=5,
|
beam_size=5,
|
||||||
best_of=5,
|
best_of=5,
|
||||||
condition_on_previous_text=True
|
condition_on_previous_text=True,
|
||||||
|
initial_prompt="Transcription en français. L'utilisateur parle français."
|
||||||
)
|
)
|
||||||
|
|
||||||
text_parts = []
|
text_parts = []
|
||||||
|
|||||||
Reference in New Issue
Block a user