Skip to content

使用模型paraformer-zh发生男女说话共生成一段字幕 #2752

@herolj

Description

@herolj

初始化 ASR (和你原版一模一样)

funasrModel = AutoModel(
model="paraformer-zh",
vad_model="fsmn-vad",
punc_model="ct-punc-c",
spk_model="cam++",
diar_model="diarization_speaker-zh", # 说话人分离模型
vad_kwargs={"max_single_segment_time": 10000},
trust_remote_code=True,
device="cuda" if torch.cuda.is_available() else "cpu"
)

在使用asr生成字幕的时候,有出现一行字幕,是男女说话共同生成的。
请问有什么办法可以解决。角色分开不能合并在一行字幕?

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions