Subspace Institute

Volcengine TTS API

Generates speech audio from the provided text using Volcengine TTS service

POST
/tts-volcengine

Request Body

application/jsonOptional
textRequiredstring
Minimum length: 1Maximum length: 1024
voiceRequiredstring

The voice type to use for speech generation

Minimum length: 1
emotionstring

Emote string

langstring

Language string

appIdRequiredstring
Minimum length: 1
tokenRequiredstring
Minimum length: 1
clusterstring

Volcengine Cluster ID

Default: "volcano_tts"

Response Body

Audio file containing the generated speech

TypeScript Definitions

Use the response body type in TypeScript.

responseRequiredunknown

Bad request - validation error

TypeScript Definitions

Use the response body type in TypeScript.

successRequiredboolean
Value in: false
messageRequiredstring
codeRequiredstring
typeRequiredstring

Server error or Volcengine API error

TypeScript Definitions

Use the response body type in TypeScript.

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

fetch("https://edge-workers.laplace.cn/laplace/tts-volcengine", {
  body
})
package main

import (
  "fmt"
  "net/http"
  "io/ioutil"
  "strings"
)

func main() {
  url := "https://edge-workers.laplace.cn/laplace/tts-volcengine"
  body := strings.NewReader(`{
    "text": "感谢ドラゴンラプラスWeChat的SC:一发sc没被念到我就冷汗直流心跳加速头皮发麻双手痉挛两腿打颤,还不好意思刷弹幕说你漏了,我好怕你看到了装作没看到。我的sc通常很短只有一小时,只有短短的3600秒,但它存在的时候,我会用心跳来为它倒数。私のBANを解除してください。もう二度とスパムしません😭",
    "voice": "string",
    "emotion": "string",
    "lang": "string",
    "appId": "string",
    "token": "string",
    "cluster": "volcano_tts"
  }`)
  req, _ := http.NewRequest("POST", url, body)
  req.Header.Add("Content-Type", "application/json")
  res, _ := http.DefaultClient.Do(req)
  defer res.Body.Close()
  body, _ := ioutil.ReadAll(res.Body)

  fmt.Println(res)
  fmt.Println(string(body))
}
import requests

url = "https://edge-workers.laplace.cn/laplace/tts-volcengine"
body = {
  "text": "感谢ドラゴンラプラスWeChat的SC:一发sc没被念到我就冷汗直流心跳加速头皮发麻双手痉挛两腿打颤,还不好意思刷弹幕说你漏了,我好怕你看到了装作没看到。我的sc通常很短只有一小时,只有短短的3600秒,但它存在的时候,我会用心跳来为它倒数。私のBANを解除してください。もう二度とスパムしません😭",
  "voice": "string",
  "emotion": "string",
  "lang": "string",
  "appId": "string",
  "token": "string",
  "cluster": "volcano_tts"
}
response = requests.request("POST", url, json = body, headers = {
  "Content-Type": "application/json"
})

print(response.text)
null
{
  "success": false,
  "message": "string",
  "code": "string",
  "type": "string"
}
{
  "success": false,
  "message": "string",
  "code": "string",
  "type": "string"
}