modelscopeTTS Unofficial api,see https://github.com/avilliai/modelscopeTTS for more information
Project description
modelscope unofficial api
使用
从pip安装
pip install modelscope_tts
安装此依赖
获取cookie
参照Manyana#issue7 复制你的cookie
运行
你可以运行下面这段代码
import asyncio
import modelscope_tts
Cookie="你的Cookie" #设置cookie
ms=modelscope_tts.TTS(Cookie) #创建对象
print(ms.listSpeakers()) #查看所有可用的角色
#语音合成是ms的tts方法,支持三个参数,text、speaker、path
ms.tts("你好") #只传text
ms.tts(text="你好",speaker="阿梓") #使用 阿梓 合成语音
ms.tts("你好","阿梓","./data/tb.wav") #额外传递路径变量(相对)
#支持异步处理方式
asyncio.run(ms.tts("你好") )
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Close
Hashes for modelscope_tts-0.1.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 576a7668eff948e96f8c9e6c4e283d6bbd7b02994fe62e651c89fa445dff5945 |
|
MD5 | e0d0c4977d848b91c3d1056bcd0cf27d |
|
BLAKE2b-256 | a2061ca8ecf46fc7340b7b1cae1f2861bdb8a4796190abc7e8df2d62506b4818 |