按能力

语音合成与转写

#文字转语音

/v1/audio/speech 直接返回音频字节——把响应体存成文件即可。voice 和 response_format 沿用 OpenAI TTS 参数。

tts.sh
curl https://www.aisplice.store/v1/audio/speech \
  -H "Authorization: Bearer $KEY" -H "Content-Type: application/json" \
  -d '{
    "model": "tts-1",
    "voice": "alloy",
    "input": "Hello from the gateway."
  }' --output hello.mp3

#语音转文字

/v1/audio/transcriptions 是 multipart 请求:上传音频文件和模型名。/v1/audio/translations 请求形状相同,返回英文。

transcribe.sh
curl https://www.aisplice.store/v1/audio/transcriptions \
  -H "Authorization: Bearer $KEY" \
  -F file=@meeting.mp3 \
  -F model=whisper-1

# → {"text": "…transcript…"}

全部字段:见 API 参考里的 /v1/audio →

还是没解决?

把请求 ID 或报错信息发给我们,我们来查。