← 返回
开发者工具 Key 中文

MiniMax Speech 2.8

Manage MiniMax Speech 2.8 TTS requests, voice catalog lookups, and precise voice/audio configuration using MiniMax API via CLI or script.
通过CLI或脚本调用MiniMax API,管理Speech 2.8 TTS请求、音色查询及精准的语音/音频配置。
wingchiu
开发者工具 clawhub v1.0.0 1 版本 100000 Key: 需要
★ 0
Stars
📥 1,723
下载
💾 96
安装
1
版本
#latest

概述

MiniMax Speech 2.8 helper

  1. Install dependencies. Run pip install requests in the environment that will execute the script. The CLI talks to MiniMax's REST API, so you only need the requests library on top of Python 3.11+.
  2. Set your MiniMax credential. Export MINIMAX_API_KEY with the API key the user promised to supply. The script will refuse to run without it.
  3. Use the bundled CLI. scripts/minimax_tts.py exposes two subcommands:
    • tts: calls POST https://api.minimax.io/v1/t2a_v2 (Speech 2.8 T2A HTTP) with the desired voice_id, voice settings, audio configuration, and optional voice effects. Example:

```bash

python scripts/minimax_tts.py tts \

--text "Tonight in Shenzhen the skies are clear." \

--voice-id "Sweet_Girl_2" \

--model speech-2.8-hd \

--audio-format mp3 \

--output minimax-weather.mp3

```

The script decodes the hex/base64 payload, saves the file, and prints metadata. Override the endpoint with --endpoint if you must hit https://api-uw.minimax.io/v1/t2a_v2 or another region.

  • voices: calls POST https://api.minimax.io/v1/get_voice to enumerate system, voice_cloning, voice_generation, or all categories. Example:

```bash

python scripts/minimax_tts.py voices --voice-type all --print-response

```

  1. Customize TTS payloads via CLI switches. Use --speed, --vol, --pitch, and --language-boost to shape the voice. Control audio fidelity with --sample-rate, --bitrate, --audio-format, and --channel. Add pronunciation overrides (--pronunciation "emoji=ee-moh-jee") or mix timbres (--timbre-weight "Sweet_Girl_2=0.8"). --voice-modify-* flags let you nudge pitch/intensity/timbre or append a sound effect such as "spacious_echo". --output-format tells the script how the API returns audio (hex, base64, or a download url).
  2. Handle the JSON. By default the script prints the extra_info field so you can read bitrate/sample rate/length. Use --print-response on either subcommand to dump the entire API payload for debugging. Save catalog JSON to disk with --output when you need to reference voices later.

Keep this skill loaded any time you are asked for MiniMax-specific voices or when precise speech settings are required. The CLI gives you deterministic control over voice_id, model, and audio quality so you always get the Sweet_Girl_2 (or any other) tone you expect. If you need to script these requests from another tool, copy the relevant requests.post logic from scripts/minimax_tts.py.

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-03-29 04:47 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

ai-intelligence

OpenAI Whisper Local

wingchiu
使用 Whisper CLI 进行本地语音转文字(无需 API 密钥)
★ 0 📥 1,024
developer-tools

Gog

steipete
Google Workspace 命令行工具,支持 Gmail、日历、云端硬盘、通讯录、表格和文档。
★ 920 📥 185,727
developer-tools

Github

steipete
使用 `gh` CLI 与 GitHub 交互,通过 `gh issue`、`gh pr`、`gh run` 和 `gh api` 管理议题、PR、CI 运行及高级查询。
★ 666 📥 323,790