lenML / Speech-AI-Forge

🍦 Speech-AI-Forge is a project developed around TTS generation model, implementing an API Server and a Gradio-based WebUI.
https://huggingface.co/spaces/lenML/ChatTTS-Forge
GNU Affero General Public License v3.0
710 stars 87 forks source link

[BUG:API] /v1/ssml #132

Closed cpken closed 2 months ago

cpken commented 2 months ago

确认清单

Forge Commit 或者 Tag

Python 版本

3.11

PyTorch 版本

最新

操作系统信息

Ubuntu

BUG 描述

AttributeError: 'SSMLRequest' object has no attribute 'batch_size'

BUG 端点

/v1/ssml

复现参数

curl -X 'POST' \
  'http://127.0.0.1:7870/v1/ssml' \
  -H 'accept: */*' \
  -H 'Content-Type: application/json' \
  -d '{
  "ssml": "string",
  "format": "mp3",
  "eos": "[uv_break]",
  "model": "chat-tts",
  "spliter_thr": 100,
  "enhancer": {
    "enabled": false,
    "model": "resemble-enhance",
    "nfe": 32,
    "solver": "midpoint",
    "lambd": 0.5,
    "tau": 0.5
  },
  "adjuster": {
    "pitch": 0,
    "speed_rate": 1,
    "volume_gain_db": 0,
    "normalize": true,
    "headroom": 1
  },
  "stream": false
}'

期望结果

修复错误

实际结果

AttributeError: 'SSMLRequest' object has no attribute 'batch_size'

错误信息

No response