一个好玩的声音生成,可生成演讲
具体用法可以查他的API档案,废话不多说,上代码! 已测试OK
是商业项目,所以很容易用
from elevenlabs import voices, generate, play
voices = voices()
audio = generate(text="I’ve taken note of your meetings for the day: you have a conference call with the design team at 10, followed by a client lunch at 1. Remember to review the project proposal before the call! I’ve also seen a few emails flagged for your attention in your inbox - would you like me to draft responses or schedule them for later?", voice=voices[0])
print(voices)
play(audio)