Skip to main content

cosyvoice-mcp

A Python-based MCP server for integrating CosyVoice TTS with the Bailian platform.

Installation

pip install cosyvoice-mcp

Usage

DASHSCOPE_API_KEY=sk-xxx cosyvoice-mcp

Features

Supports JSON-RPC over HTTP (streamable-http) Compatible with FastMCP and DashScope TTS Base64-encoded audio output

Request

stdio

tool: text_to_speech

说明:调用百炼平台CosyVoice V2进行语音合成

streamable-http

  • url: http://localhost:8000/mcp/tools/text_to_speech
  • method: POST

Parameters

返回

{
  "request_id": "7f6da1729d7345babb976d497f8bfaaa",
  "output": {
    "audio": {
      "data": "SUQzBAAAAAAAI1RTU0UAAAAPAAADTGF2ZjU4Lj...", //base64 encoded audio
      "mime_type": "audio/mpeg",
      "file_name": "哈哈_longxiaocheng_v2.mp3"
    },
    "metrics": {
      "first_byte_latency": 738.578125,
      "text_length": 2
    }
  }
}

Metadata

Release files for cosyvoice-mcp 0.6.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for cosyvoice-mcp 0.6.0
File Size Uploaded Provenance
cosyvoice_mcp-0.6.0.tar.gz 4.6 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for cosyvoice-mcp 0.6.0
File Interpreter ABI Platform
cosyvoice_mcp-0.6.0-py3-none-any.whl Python 3 none any Details

Total release size: 9.7 kB

Release files / cosyvoice_mcp-0.6.0.tar.gz

Download URL cosyvoice_mcp-0.6.0.tar.gz
Size 4.6 kB
Tags Source
SHA-256 checksum
How to use checksums
8d938ef624158b3f572b0cfffc808b34610acfbbd68a5a3bb344c33e970c5b8a
BLAKE2b-256 checksum
How to use checksums
734402db3cc45639500cec268c980625e498fd05659cd676e225d0cf026d54a2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.2

Release files / cosyvoice_mcp-0.6.0-py3-none-any.whl

Download URL cosyvoice_mcp-0.6.0-py3-none-any.whl
Size 5.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9431b0bac91ace51ec226e1bf781868d6a185e40d949b004d8af65f91ef392a5
BLAKE2b-256 checksum
How to use checksums
6855a7e010b274644e93c8398c5135c9d3a5dc4149f04a823a1fe3a5defb1a0e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.2

Security for cosyvoice-mcp 0.6.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page