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]使用change_speed更改speed 每次都会报错xmalloc: out of memory #3748

Open
xiaohundun opened this issue Apr 17, 2024 · 1 comment

Comments

@xiaohundun
Copy link

Describe the bug
使用change_speed更改speed 每次都会报错xmalloc: out of memory

To Reproduce

from paddlespeech.server.utils.audio_process import change_speed
import os
import soundfile as sf

tts = TTSExecutor()


tts(
    text="""你好啊,我叫某某某""",
    am="fastspeech2_male",
    lang="mix",
    voc="pwgan_male",
    output="output.wav",
)
wav_speed = change_speed(tts._outputs["wav"].numpy(), 1.2, 1)
output = os.path.abspath(os.path.expanduser("output.wav"))
sf.write(output, wav_speed)

Expected behavior
成功转换

Screenshots
image

Environment (please complete the following information):
macOS python 3.9 paddle 2.5.2 paddlespeech 1.4.1 sox 1.5.0

Additional context
Add any other context about the problem here.

@Ray961123
Copy link

开发者你好,感谢关注 PaddleSpeech 开源项目,抱歉给你带来了不好的开发体验,目前开源项目维护人力有限,你可以尝试通过修改 PaddleSpeech 源码的方式自己解决,或请求开源社区其他开发者的协助。飞桨开源社区交流频道:飞桨AI Studio星河社区-人工智能学习与实训社区

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants