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

tts生成过程中如何取消/中断当次生成过程? #1040

Closed
zhanweiw opened this issue Jun 22, 2024 · 0 comments · Fixed by #1041
Closed

tts生成过程中如何取消/中断当次生成过程? #1040

zhanweiw opened this issue Jun 22, 2024 · 0 comments · Fixed by #1041

Comments

@zhanweiw
Copy link

通过如下Python代码将文本转换成语音过程中,如果想取消/中断当次生成,应该如何实现?是否可以通过回调函数返回False来中断?

    audio = tts.generate(
        text,
        sid=sid,
        speed=speed,
        callback=generated_audio_callback,
    )
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

Successfully merging a pull request may close this issue.

1 participant