Skip to main content

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

modelscope_tts-0.1.4-py3-none-any.whl (15.6 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page