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

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.3.0.tar.gz (4.3 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.3.0-py3-none-any.whl (4.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: cosyvoice_mcp-0.3.0.tar.gz
  • Upload date:
  • Size: 4.3 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.3.0.tar.gz
Algorithm Hash digest
SHA256 2aa4807b27821fac5b7833e645c57683a8cfca992a07c816ac20b7f4db0bc0e4
MD5 76ceeea93a7bbf81e73ff342a514faf5
BLAKE2b-256 553328ae96a3cec8c5ac1bb877fe944eb936bb1b95b00ed244d4b1c32fa2ec1a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: cosyvoice_mcp-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 4.8 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.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b920f146f3211932624e1791fbccc35ae6d413d80cd3ab94dbd247c790d3ed43
MD5 4ab42f7358a47ebc777a924225d47a80
BLAKE2b-256 ff113a6ba66e2fb3a20248fdea54395413d02403b59fad685112463b708f0133

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