将中文文章转换为语音音频(仅限中文)。
bash
python3 edge_tts_chinese.py --text "你的中文文章内容"
bash
python3 edge_tts_chinese.py --file 文章.txt
bash
python3 edge_tts_chinese.py
# 然后粘贴文章内容,按 Ctrl+D 结束
参数说明默认值--text, -t直接输入文章内容---file, -f从文件读取文章---voice, -v语音名称zh-CN-XiaoxiaoNeural--output, -o输出文件路径/tmp/edge_tts_chinese.mp3
语音说明zh-CN-XiaoxiaoNeural中文女声(默认)zh-CN-YunxiNeural中文男声zh-CN-XiaoyiNeural中文女声(年轻)zh-CN-YunyangNeural中文男声(新闻)