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

流式的时候可以输出对应文本吗? #808

Open
the-nine-nation opened this issue Oct 30, 2024 · 1 comment
Open

流式的时候可以输出对应文本吗? #808

the-nine-nation opened this issue Oct 30, 2024 · 1 comment
Labels
documentation Improvements or additions to documentation

Comments

@the-nine-nation
Copy link

如题,我希望找到一个方式,能够在输出对应音频的时候同步输出对应文本,有没有办法实现?看了当前源码,似乎没有对应方式

@fumiama
Copy link
Member

fumiama commented Oct 30, 2024

目前没有。音频无法像文本那样输出多少显示多少,因为音频需要保持恒定的速度。即使给出音频对应的文本,文本可以正常显示但是音频不行。

当然,如果你只是想输出生成音频的文本,只需要分两步

  1. refine_text
  2. 用refine结果生成音频

详见webui示例。

@fumiama fumiama added the documentation Improvements or additions to documentation label Oct 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

2 participants