-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
python出了个edge-TTS,可以免费、无限量合成非常接近人的语音。可以加上吗? #233
Labels
enhancement
好想法,以后考虑跟进
Comments
能帮改改下面的代码不?这是用chatgpt写的。 class EdgeTTS(AbstractTTS):
|
wzpan
added a commit
that referenced
this issue
Apr 15, 2023
Merged
3.5.1 版本已发布,增加了 edge-tts 的支持。详见:#243 |
感谢感谢 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
import edge_tts
import asyncio
voice = 'zh-CN-XiaoxiaoNeural'
rate = '-4%'
volume = '+0%'
async def edgeTTS(TEXT,audiofile):
tts = edge_tts.Communicate(text = TEXT,voice = voice,rate = rate,volume=volume)
await tts.save(audiofile)
由于这个tts可以无限使用,所以没必要保存成音频文件,不用考虑是否命中缓存,接收到音频流就直接送去播放。这样能减少写入。
The text was updated successfully, but these errors were encountered: