Skip to content

音频 API ​

语音合成 TTS ​

POST https://ai.jhdataops.com/v1/audio/speech
bash
curl https://ai.jhdataops.com/v1/audio/speech \
  -H "Authorization: Bearer sk-xxxxxxxx" \
  -H "Content-Type: application/json" \
  -d '{"model":"tts-1","input":"你好世界","voice":"alloy"}' \
  --output speech.mp3
参数说明
model如 tts-1
input要合成的文本
voice音色
response_formatmp3 / wav 等

语音识别 ASR ​

POST https://ai.jhdataops.com/v1/audio/transcriptions   (multipart/form-data)
bash
curl https://ai.jhdataops.com/v1/audio/transcriptions \
  -H "Authorization: Bearer sk-xxxxxxxx" \
  -F model="whisper-1" \
  -F file="@audio.mp3"

POST /v1/audio/translations 在识别的同时翻译为英文。

实时语音 Realtime ​

GET wss://ai.jhdataops.com/v1/realtime

WebSocket 低延迟语音对话,用法与 OpenAI Realtime API 一致。

浙中TOKEN运营中心-模型广场 · 一个 API Key 接入全量大模型