Skip to content

python出了个edge-TTS,可以免费、无限量合成非常接近人的语音。可以加上吗? #233

Closed
@prairiewolf11

Description

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可以无限使用,所以没必要保存成音频文件,不用考虑是否命中缓存,接收到音频流就直接送去播放。这样能减少写入。

Metadata

Assignees

Labels

enhancement好想法,以后考虑跟进

Projects

  • Status

    Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions