mirror of
https://github.com/modelscope/FunASR
synced 2025-09-15 14:48:36 +08:00
add text ibest writer for SenseVoiceL
This commit is contained in:
parent
797bd57f91
commit
6fc9354924
@ -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]
|
||||
|
||||
Loading…
Reference in New Issue
Block a user