Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

时间戳功能怎么用? #191

Open
Lluvia-Tang opened this issue Feb 21, 2025 · 4 comments
Open

时间戳功能怎么用? #191

Lluvia-Tang opened this issue Feb 21, 2025 · 4 comments
Labels
question Further information is requested

Comments

@Lluvia-Tang
Copy link

请问2024.11月增加的基于CTC的时间戳对齐功能怎么使用呢?

@Lluvia-Tang Lluvia-Tang added the question Further information is requested label Feb 21, 2025
@xinzhuang
Copy link

参考demo2.py,在推理方法中添加output_timestamp参数。

@HakureiAlice
Copy link

@xinzhuang 请问一下使用 funasr 推理可以添加时间戳吗?

@xinzhuang
Copy link

@xinzhuang 请问一下使用 funasr 推理可以添加时间戳吗?
目前我没发现funasr支持。

@Cranial-XIX
Copy link

可以试试看把这一行
https://github.com/FunAudioLLM/SenseVoice/blob/main/model.py#L899

换成
torch.tensor([encoder_out_lens[i].item() - 4]).long().to(logits_speech.device)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

4 participants