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]Canton CLI, test=tts #2977

Merged
merged 2 commits into from
Mar 1, 2023
Merged

Conversation

WongLaw
Copy link
Contributor

@WongLaw WongLaw commented Mar 1, 2023

Canton CLI, test=tts
CLI:

paddlespeech tts --am fastspeech2_canton --voc pwgan_aishell3 --input "各个国家有各个国家嘅国歌" --lang canton --spk_id 10

Python API:

import paddle
from paddlespeech.cli.tts import TTSExecutor
tts_executor = TTSExecutor()
wav_file = tts_executor(
    text='各个国家有各个国家嘅国歌',
    output='output.wav',
    am='fastspeech2_canton',
    am_config=None,
    am_ckpt=None,
    am_stat=None,
    spk_id=10,
    phones_dict=None,
    tones_dict=None,
    speaker_dict=None,
    voc='pwgan_aishell3',
    voc_config=None,
    voc_ckpt=None,
    voc_stat=None,
    lang='canton',
    device=paddle.get_device())
print('Wave file has been generated: {}'.format(wav_file))

@WongLaw WongLaw added the T2S label Mar 1, 2023
@WongLaw WongLaw added this to the r1.4.0 milestone Mar 1, 2023
@WongLaw WongLaw requested a review from yt605155624 March 1, 2023 11:02
@WongLaw WongLaw self-assigned this Mar 1, 2023
@paddle-bot
Copy link

paddle-bot bot commented Mar 1, 2023

Thanks for your contribution!

@mergify mergify bot added the CLI label Mar 1, 2023
@yt605155624
Copy link
Collaborator

参考 #2945 把此次新增的 cli 和 pythonAPI 在 pr 开头写上,并更新到单测 https://github.com/PaddlePaddle/PaddleSpeech/blob/develop/tests/unit/cli/test_cli.sh

@mergify mergify bot added the Test label Mar 1, 2023
@yt605155624 yt605155624 changed the title Canton CLI, test=tts [TTS]Canton CLI, test=tts Mar 1, 2023
Copy link
Collaborator

@yt605155624 yt605155624 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@yt605155624 yt605155624 merged commit c8196d4 into PaddlePaddle:develop Mar 1, 2023
@zxcd zxcd mentioned this pull request Mar 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants