
Security News
Browserslist-rs Gets Major Refactor, Cutting Binary Size by Over 1MB
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.
高质量的模块化中文语音合成系统,支持多种部署方式。
包含所有组件,适合单机部署或完整服务:
pip install "illufly-tts[full]"
轻量级安装,只包含客户端组件:
pip install "illufly-tts[client]"
包含TTS核心服务:
pip install "illufly-tts[server]"
# 启动完整服务(包含API和TTS引擎)
python -m illufly_tts serve --voices-dir=./voices --device=cpu
# 在服务器上启动MCP服务
python -m illufly_tts server --voices-dir=./voices --device=cuda --transport=sse --port=31572
# 在客户端启动API服务
python -m illufly_tts api --server-host=tts-server-ip --server-port=31572
# 通过命令行使用
python -m illufly_tts client speak --process-command="/usr/bin/python" --process-args="-m,illufly_tts,server" "你好世界"
# 获取可用语音
python -m illufly_tts client voices
from fastapi import FastAPI
from illufly_tts.api.endpoints import mount_tts_service
app = FastAPI()
# 添加自定义认证逻辑
async def get_current_user():
# 实现你的认证逻辑
return {"user_id": "my_user"}
# 挂载TTS服务
mount_tts_service(
app=app,
require_user=get_current_user,
host="tts-server-host", # 或使用子进程方式
port=31572,
prefix="/api/tts"
)
如果你希望完全避免依赖,可以直接复制以下关键文件:
src/illufly_tts/client/mcp_client.py
- MCP客户端src/illufly_tts/api/endpoints.py
- FastAPI端点然后按照上面的集成示例整合到你的应用中。
详细文档请参阅项目Wiki或API文档。
FAQs
Text-to-Speech module for Illufly AI
We found that illufly-tts demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.
Research
Security News
Eight new malicious Firefox extensions impersonate games, steal OAuth tokens, hijack sessions, and exploit browser permissions to spy on users.
Security News
The official Go SDK for the Model Context Protocol is in development, with a stable, production-ready release expected by August 2025.