Skip to main content

A MCP server for CosyVoice TTS using DashScope API

Project description

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

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
    }
  }
}

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cosyvoice_mcp-0.4.0.tar.gz (4.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cosyvoice_mcp-0.4.0-py3-none-any.whl (5.0 kB view details)

Uploaded Python 3

File details

Details for the file cosyvoice_mcp-0.4.0.tar.gz.

File metadata

  • Download URL: cosyvoice_mcp-0.4.0.tar.gz
  • Upload date:
  • Size: 4.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.2

File hashes

Hashes for cosyvoice_mcp-0.4.0.tar.gz
Algorithm Hash digest
SHA256 0b2a23824e5caf92a3546d015cede5b33c1af8113437fe7755e81e580875e855
MD5 78a735d7f136714a91d09a11146d2772
BLAKE2b-256 48c53fcbbdb5723804b350beb11961ef7368c4aef97f1f9d020ef0dc86fc08a8

See more details on using hashes here.

File details

Details for the file cosyvoice_mcp-0.4.0-py3-none-any.whl.

File metadata

  • Download URL: cosyvoice_mcp-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 5.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.2

File hashes

Hashes for cosyvoice_mcp-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 427da3e0fe9a0371fa276ccf205dce2093b7c8fcead56b78037ee2c89e9e50ae
MD5 ec0dc31f8de8f2b312d4829193c067dd
BLAKE2b-256 74942d6e33d5e7fdb24734c953a7b07a3e21e7745612fa3f9bfba4f472201160

See more details on using hashes here.

Supported by

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