Skip to content

tts速度问题 #1256

Answered by yt605155624
FredGoo asked this question in Q&A
Dec 31, 2021 · 5 comments · 7 replies
Discussion options

You must be logged in to vote

安装最新的 develop ,我使用如下代码在 GPU 上运行结果如下(因为之前调用过,所以模型已经下载好了)

from paddlespeech.cli import TTSExecutor
import time
import paddle
tts_executor = TTSExecutor()
time_1 = time.time()
wav_file = tts_executor(
    text='对数据集进行预处理',
    output='1.wav',
    am='fastspeech2_csmsc',
    am_config=None,
    am_ckpt=None,
    am_stat=None,
    spk_id=0,
    phones_dict=None,
    tones_dict=None,
    speaker_dict=None,
    voc='pwgan_csmsc',
    voc_config=None,
    voc_ckpt=None,
    voc_stat=None,
    lang='zh',
    device=paddle.get_device())
time_2 = time.time()
print("time of first time:", time_2-time_1)
wav_file = tts_executor(
    text='你好吗',
    output='2.wav',
    am='fastspeech2_csmsc',
    am_con…

Replies: 5 comments 7 replies

Comment options

You must be logged in to vote
2 replies
@FredGoo
Comment options

@xwydq
Comment options

Comment options

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

Comment options

You must be logged in to vote
4 replies
@FredGoo
Comment options

@FredGoo
Comment options

@yt605155624
Comment options

@FredGoo
Comment options

Answer selected by yt605155624
Comment options

You must be logged in to vote
0 replies
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
Category
Q&A
Labels
3 participants