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

Export Time Info. #863

Closed
wukonggeo opened this issue May 11, 2024 · 2 comments
Closed

Export Time Info. #863

wukonggeo opened this issue May 11, 2024 · 2 comments

Comments

@wukonggeo
Copy link

When I use python to run the democode, how to output the time range corresponding to each sentence when outputting audio?
@csukuangfj

@csukuangfj
Copy link
Collaborator

Please see
https://github.com/k2-fsa/sherpa-onnx/blob/master/python-api-examples/generate-subtitles.py

You can generate subtitles, which contain both time and text.

@wukonggeo
Copy link
Author

Thank you very much for your reply. This code is too complex for simple text-speech-generation. I decided to split the text into several sentences and used pydub to calculate time length.

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

No branches or pull requests

2 participants