Subspace Institute

Azure AI Speech API

Generates speech audio from the provided text using Azure's Text-to-Speech service

POST
/tts-azure
/tts-azure

Request Body

application/jsonOptional

text
Required
string

Minimum length: 1Maximum length: 4096

voicestring

The voice to use for speech generation

Default: "zh-CN-XiaoxiaoMultilingualNeural"

token
Required
string

Azure Speech Service API key

Minimum length: 1

regionstring

Azure Speech Service region

Default: "eastus"
curl -X POST "https://tts-relay.laplace.cn/api/laplace/tts-azure" \
  -H "Content-Type: application/json" \
  -d '{
    "text": "感谢ドラゴンラプラスWeChat的SC:一发sc没被念到我就冷汗直流心跳加速头皮发麻双手痉挛两腿打颤,还不好意思刷弹幕说你漏了,我好怕你看到了装作没看到。我的sc通常很短只有一小时,只有短短的3600秒,但它存在的时候,我会用心跳来为它倒数。私のBANを解除してください。もう二度とスパムしません😭",
    "voice": "zh-CN-XiaoxiaoMultilingualNeural",
    "token": "string",
    "region": "eastus"
  }'

Audio file containing the generated speech

null