Quick Start

快速发起你的第一次TTS请求。 将 YOUR_API_KEY 替换为创建获取的密钥 即可生成一段语音音频。

cURL
curl -X POST "https://studio.mosi.cn/api/v1/audio/speech" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -d '{
    "model": "moss-tts",
    "text": "今天天气真好",
    "voice_id": "2001257729754140672",
    "expected_duration_sec": 3.2,
    "meta_info": true,
    "sampling_params": {
      "max_new_tokens": 20000,
      "temperature": 1.7,
      "top_p": 0.8,
      "top_k": 25
    }
  }' | jq -r '.audio_data' | base64 -d -i > output.wav

快速入口

API文档
模型介绍
积分用量