Skip to content

如何控制音频的语速 #15

Answered by zhzLuke96
matyhtf asked this question in 问答 | Q&A
Discussion options

You must be logged in to vote

简单说有两个方法,prompt,或者调用api使用原始的音频加速,具体看你要用在哪

  1. 使用prompt调整语速:
    如果你在使用 webui 入口,在tts tab左下角有 Prompt engineering 模块
    你可以在 prefix 栏填入 [speed_5] 以调整语速,最高 [speed_9] 最低 [speed_0] 没有写的话模型以文本内容自行推断也可能是随机
    (虽然即使写了 prefix 也有可能不会变快,但是大概率是会有效果)

  2. 调用接口
    具体部署之后看 /docs 下,有 speed 参数的接口都可以调整
    当然,调用接口也可以写 prefix

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@matyhtf
Comment options

Answer selected by matyhtf
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
3 participants
Converted from issue

This discussion was converted from issue #14 on June 07, 2024 15:12.