add text ibest writer for SenseVoiceL

This commit is contained in:
志浩 2024-09-24 16:32:01 +08:00
parent 797bd57f91
commit 6fc9354924

View File

@ -1946,7 +1946,7 @@ class SenseVoiceL(nn.Module):
speech = speech.to(device=kwargs["device"])[0, :, :]
speech_lengths = speech_lengths.to(device=kwargs["device"])
DecodingOptions = kwargs.get("DecodingOptions", {})
DecodingOptions = kwargs.get("DecodingOptions", {"fp16": kwargs.get("fp16", True)})
task = DecodingOptions.get("task", "ASR")
if isinstance(task, str):
task = [task]