Bootstrap

CosyVoice 实时语音合成语音克隆流式api接口,requests请求使用案例

参考:

https://blog.csdn.net/weixin_42357472/article/details/140321056
https://blog.csdn.net/weixin_42357472/article/details/137239085
https://www.bilibili.com/video/BV1BE421A7CG

主要改动app.py 、cosyvoice.py两个文件,这里用的CosyVoice docker环境测试

CosyVoice 语音合成流式api接口

api接口,放在/opt/CosyVoice/CosyVoice下
在这里插入图片描述

app.py

import time
import io, os, sys
from flask_cors import CORS
ROOT_DIR = os.path.dirname(os.path.abspath(__file__))
sys.path.append
;